summaryrefslogtreecommitdiffstats
path: root/lib/ts_fsm.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-11-17 15:09:38 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2007-11-23 12:32:09 +0100
commit38cb2419f544ad413c7f7aa8c17fd7377610cdd8 (patch)
treef54bcb1294d2f8dfe87d42cb3603c4dd4ac13d74 /lib/ts_fsm.c
parent[CRYPTO] authenc: Move initialisations up to shut up gcc (diff)
downloadlinux-38cb2419f544ad413c7f7aa8c17fd7377610cdd8.tar.xz
linux-38cb2419f544ad413c7f7aa8c17fd7377610cdd8.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 'lib/ts_fsm.c')
0 files changed, 0 insertions, 0 deletions