projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b2cd92
)
crypto: shash - Fix tfm destruction
author
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 5 Feb 2009 05:51:25 +0000
(16:51 +1100)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 5 Feb 2009 05:51:25 +0000
(16:51 +1100)
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>
include/crypto/hash.h
patch
|
blob
|
history
diff --git
a/include/crypto/hash.h
b/include/crypto/hash.h
index
cd16d6e
..
d797e11
100644
(file)
--- 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(