mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
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>
This commit is contained in:
parent
57cfe44bcc
commit
aef73cfcb9
2 changed files with 3 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue