summaryrefslogtreecommitdiff
path: root/crypto/cast5_generic.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2019-12-06 13:55:17 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2019-12-11 16:48:38 +0800
commitbc39d9486351deb0881a382c6c2d52b73467d304 (patch)
treecfcc7dfeeca2366ece1345c2910804814146f664 /crypto/cast5_generic.c
parenta2ce15b668c6001804d34080c79e5e3c9979eda7 (diff)
downloadlinux-crypto-bc39d9486351deb0881a382c6c2d52b73467d304.tar.gz
linux-crypto-bc39d9486351deb0881a382c6c2d52b73467d304.zip
crypto: api - Check spawn->alg under lock in crypto_drop_spawn
We need to check whether spawn->alg is NULL under lock as otherwise the algorithm could be removed from under us after we have checked it and found it to be non-NULL. This could cause us to remove the spawn from a non-existent list. Fixes: d0bb12bd1529 ("crypto: api - Fix crypto_drop_spawn crash...") Cc: <stable@vger.kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/cast5_generic.c')
0 files changed, 0 insertions, 0 deletions