summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdswap.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2024-10-06 09:18:37 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2024-10-10 17:03:35 +0800
commitb81e286ba154a4e0f01a94d99179a97f4ba3e396 (patch)
tree92882bd3f011611282e59e15c0cab93f1ff67c39 /drivers/mtd/mtdswap.c
parent44ac4625ea002deecd0c227336c95b724206c698 (diff)
downloadlinux-b81e286ba154a4e0f01a94d99179a97f4ba3e396.tar.gz
linux-b81e286ba154a4e0f01a94d99179a97f4ba3e396.tar.bz2
linux-b81e286ba154a4e0f01a94d99179a97f4ba3e396.zip
crypto: api - Fix liveliness check in crypto_alg_tested
As algorithm testing is carried out without holding the main crypto lock, it is always possible for the algorithm to go away during the test. So before crypto_alg_tested updates the status of the tested alg, it checks whether it's still on the list of all algorithms. This is inaccurate because it may be off the main list but still on the list of algorithms to be removed. Updating the algorithm status is safe per se as the larval still holds a reference to it. However, killing spawns of other algorithms that are of lower priority is clearly a deficiency as it adds unnecessary churn. Fix the test by checking whether the algorithm is dead. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/mtd/mtdswap.c')
0 files changed, 0 insertions, 0 deletions