kernel_optimize_test/crypto
Herbert Xu da7cd59ab9 [CRYPTO] api: Read module pointer before freeing algorithm
The function crypto_mod_put first frees the algorithm and then drops
the reference to its module.  Unfortunately we read the module pointer
which after freeing the algorithm and that pointer sits inside the
object that we just freed.

So this patch reads the module pointer out before we free the object.

Thanks to Luca Tettamanti for reporting this.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2007-05-19 14:51:00 +10:00
..
ablkcipher.c
aes.c
algapi.c
anubis.c
api.c
arc4.c
blkcipher.c
blowfish.c
camellia.c
cast5.c
cast6.c
cbc.c
cipher.c
compress.c
crc32c.c
cryptd.c
crypto_null.c
cryptomgr.c
deflate.c
des.c
digest.c
ecb.c
fcrypt.c
gf128mul.c
hash.c
hmac.c
internal.h
Kconfig
khazad.c
lrw.c
Makefile
md4.c
md5.c
michael_mic.c
pcbc.c
proc.c
scatterwalk.c
scatterwalk.h
serpent.c
sha1.c
sha256.c
sha512.c
tcrypt.c
tcrypt.h
tea.c
tgr192.c
twofish_common.c
twofish.c
wp512.c
xcbc.c