summaryrefslogtreecommitdiff
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-02-05 16:51:25 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2009-02-05 16:51:25 +1100
commit412e87ae5d852bc3d836f475c19d954b3324363d (patch)
tree4f6a953f20f94eb076b178b3b7ac31bc5508aff9 /include/crypto
parent7b2cd92adc5430b0c1adeb120971852b4ea1ab08 (diff)
downloadlinux-3.10-412e87ae5d852bc3d836f475c19d954b3324363d.tar.gz
linux-3.10-412e87ae5d852bc3d836f475c19d954b3324363d.tar.bz2
linux-3.10-412e87ae5d852bc3d836f475c19d954b3324363d.zip
crypto: shash - Fix tfm destruction
We were freeing an offset into the slab object instead of the start. This patch fixes it by calling crypto_destroy_tfm which allows the correct address to be given. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/hash.h b/include/crypto/hash.h
index cd16d6e668c..d797e119e3d 100644
--- a/include/crypto/hash.h
+++ b/include/crypto/hash.h
@@ -222,7 +222,7 @@ static inline struct crypto_tfm *crypto_shash_tfm(struct crypto_shash *tfm)
static inline void crypto_free_shash(struct crypto_shash *tfm)
{
- crypto_free_tfm(crypto_shash_tfm(tfm));
+ crypto_destroy_tfm(tfm, crypto_shash_tfm(tfm));
}
static inline unsigned int crypto_shash_alignmask(