History

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.

Herbert Xu committed 17 years ago

Commit aef73cf1 parent 57cfe442 files · +3 −3Browse files

Showing the changes to include/crypto (1 of 2 files). Show all

Unified · Split

include/crypto/hash.h+1−1
@@ -186,7 +186,7 @@ static inline struct ahash_request *ahash_request_alloc( · 185 unmodified lines
186 186
187static inline void ahash_request_free(struct ahash_request *req)187static inline void ahash_request_free(struct ahash_request *req)
188{188{
189 kfree(req);189 kzfree(req);
190}190}
191 191
192static inline struct ahash_request *ahash_request_cast(192static inline struct ahash_request *ahash_request_cast(

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t