summaryrefslogtreecommitdiff
path: root/crypto/gcm.c
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
commitb2a9364e29858f7f5251249b2cea473e3b5c47bf (patch)
treecd01e12b830c03dd98fcb7ecff7b335b1a52c798 /crypto/gcm.c
parent755ca31d614d45af36d6e22568c9d97db4ae4f8b (diff)
downloadlinux-crypto-b2a9364e29858f7f5251249b2cea473e3b5c47bf.tar.gz
linux-crypto-b2a9364e29858f7f5251249b2cea473e3b5c47bf.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 'crypto/gcm.c')
0 files changed, 0 insertions, 0 deletions