summaryrefslogtreecommitdiffstats
path: root/crypto/scompress.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
commit7db3b61b6bba4310f454588c2ca6faf2958ad79f (patch)
tree531463d296fa92e7a02896dd19aeadb4dc23bcd0 /crypto/scompress.c
parent579d705cd64e44f3fcda1a6cfd5f37468a5ddf63 (diff)
downloadlinux-7db3b61b6bba4310f454588c2ca6faf2958ad79f.tar.gz
linux-7db3b61b6bba4310f454588c2ca6faf2958ad79f.tar.bz2
linux-7db3b61b6bba4310f454588c2ca6faf2958ad79f.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: 7ede5a5ba55a ("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/scompress.c')
0 files changed, 0 insertions, 0 deletions