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.
Showing the changes to include/crypto (1 of 2 files). Show all
Unified · Split
| @@ -186,7 +186,7 @@ static inline struct ahash_request *ahash_request_alloc( · 185 unmodified lines | ||
| 186 | 186 | |
| 187 | 187 | static inline void ahash_request_free(struct ahash_request *req) |
| 188 | 188 | { |
| 189 | − kfree(req); | |
| 189 | + kzfree(req); | |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | 192 | static inline struct ahash_request *ahash_request_cast( |