summaryrefslogtreecommitdiff
path: root/include/crypto/hash.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-07-11 14:22:14 (GMT)
committerHerbert Xu <herbert@gondor.apana.org.au>2009-07-12 02:46:03 (GMT)
commitaef73cfcb913eae3d0deeb60eb385f75039db40b (patch)
tree3529010110c3dba2c1cc375b6cfb30d04153b73d /include/crypto/hash.h
parent57cfe44bccb0e38ddb44a34a42f517deef1f4e82 (diff)
downloadlinux-aef73cfcb913eae3d0deeb60eb385f75039db40b.tar.xz
crypto: async - Use kzfree for requests
This patch changes the kfree call to kzfree for async requests. As the request may contain sensitive data it needs to be zeroed before it can be reallocated by others. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/hash.h')
-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 3c4cce6..f74214a 100644
--- a/include/crypto/hash.h
+++ b/include/crypto/hash.h
@@ -186,7 +186,7 @@ static inline struct ahash_request *ahash_request_alloc(
static inline void ahash_request_free(struct ahash_request *req)
{
- kfree(req);
+ kzfree(req);
}
static inline struct ahash_request *ahash_request_cast(