summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>2009-07-03 12:09:41 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2009-07-03 12:09:41 +0800
commited94070058033a3c99fe62c90d00c39dc443c679 (patch)
tree5ae19b435f0903e67834e10ddccec2be4cfa4ab6 /virt
parenta68f6610d4f1ebe61818f5926fa8fa9e75d06a95 (diff)
downloadlinux-3.10-ed94070058033a3c99fe62c90d00c39dc443c679.tar.gz
linux-3.10-ed94070058033a3c99fe62c90d00c39dc443c679.tar.bz2
linux-3.10-ed94070058033a3c99fe62c90d00c39dc443c679.zip
crypto: ansi_prng - Use just a BH lock
The current code uses a mix of sping_lock() & spin_lock_irqsave(). This can lead to deadlock with the correct timming & cprng_get_random() + cprng_reset() sequence. I've converted them to bottom half locks since all three user grab just a BH lock so this runs probably in softirq :) Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions