summaryrefslogtreecommitdiff
path: root/crypto/async_tx
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-11-17 22:09:38 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2007-11-23 19:32:09 +0800
commit29a2ac24bee6d1aec7f2aa56f7fe1de74846e9b6 (patch)
treeea3710d10a6bab416f3a4bd81d92fd8b11c2cecc /crypto/async_tx
parent6af5c01eccc9e384c12bb5cc20c8e025f8b2e7c2 (diff)
downloadlinux-crypto-29a2ac24bee6d1aec7f2aa56f7fe1de74846e9b6.tar.gz
linux-crypto-29a2ac24bee6d1aec7f2aa56f7fe1de74846e9b6.zip
[CRYPTO] api: Fix potential race in crypto_remove_spawn
As it is crypto_remove_spawn may try to unregister an instance which is yet to be registered. This patch fixes this by checking whether the instance has been registered before attempting to remove it. It also removes a bogus cra_destroy check in crypto_register_instance as 1) it's outside the mutex; 2) we have a check in __crypto_register_alg already. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/async_tx')
0 files changed, 0 insertions, 0 deletions