aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crypto_user.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-04-02 22:31:22 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-03 17:53:32 +0800
commit1f7237109951ebe8dc194461716443a5d8caf308 (patch)
treed66524f7b6ed702c7939975abd53af31141599f3 /crypto/crypto_user.c
parentcrypto: omap-sham - Add the offset of sg page to vaddr (diff)
downloadlinux-dev-1f7237109951ebe8dc194461716443a5d8caf308.tar.xz
linux-dev-1f7237109951ebe8dc194461716443a5d8caf308.zip
crypto: api - Fix races in crypto_unregister_instance
There are multiple problems in crypto_unregister_instance: 1) The cra_refcnt BUG_ON check is racy and can cause crashes. 2) The cra_refcnt check shouldn't exist at all. 3) There is no reference on tmpl to protect the tmpl->free call. This patch rewrites the function using crypto_remove_spawn which now morphs into crypto_remove_instance. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/crypto_user.c')
0 files changed, 0 insertions, 0 deletions