aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/crypto.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-07-11 10:22:14 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2009-07-11 22:46:03 -0400
commitaef73cfcb913eae3d0deeb60eb385f75039db40b (patch)
tree3529010110c3dba2c1cc375b6cfb30d04153b73d /include/linux/crypto.h
parent57cfe44bccb0e38ddb44a34a42f517deef1f4e82 (diff)
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/linux/crypto.h')
-rw-r--r--include/linux/crypto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index ec29fa268b94..274f9c7da90c 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -770,7 +770,7 @@ static inline struct ablkcipher_request *ablkcipher_request_alloc(
770 770
771static inline void ablkcipher_request_free(struct ablkcipher_request *req) 771static inline void ablkcipher_request_free(struct ablkcipher_request *req)
772{ 772{
773 kfree(req); 773 kzfree(req);
774} 774}
775 775
776static inline void ablkcipher_request_set_callback( 776static inline void ablkcipher_request_set_callback(
@@ -901,7 +901,7 @@ static inline struct aead_request *aead_request_alloc(struct crypto_aead *tfm,
901 901
902static inline void aead_request_free(struct aead_request *req) 902static inline void aead_request_free(struct aead_request *req)
903{ 903{
904 kfree(req); 904 kzfree(req);
905} 905}
906 906
907static inline void aead_request_set_callback(struct aead_request *req, 907static inline void aead_request_set_callback(struct aead_request *req,