crypto: aesni-intel - Fix remaining leak in rfc4106_set_hash_key
authorJesper Juhl <jj@chaosbits.net>
Wed, 16 Feb 2011 02:04:09 +0000 (13:04 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Feb 2011 02:04:09 +0000 (13:04 +1100)
commitfc9044e2db8c13746cd886d6276028b27ed5c78e
treedd5ef29162ba59ac85e2adf60b1e855123141ecb
parent36be070ac600d023ada2ec107ee925f5ac5f902b
crypto: aesni-intel - Fix remaining leak in rfc4106_set_hash_key

Fix up previous patch that failed to properly fix mem leak in
rfc4106_set_hash_subkey(). This add-on patch; fixes the leak. moves
kfree() out of the error path, returns -ENOMEM rather than -EINVAL when
ablkcipher_request_alloc() fails.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aesni-intel_glue.c
This page took 0.029032 seconds and 5 git commands to generate.