Skip to content

Commit 508c93a

Browse files
jallisonciqPlaidCat
authored andcommitted
KEYS: use kfree_sensitive with key
key might contain private part of the key, so better use kfree_sensitive to free it Signed-off-by: Mahmoud Adam <[email protected]> Signed-off-by: Herbert Xu <[email protected]> Back-port of upstream commit: 9f3fa6b Signed-off-by: Jeremy Allison <[email protected]>
1 parent c5e9068 commit 508c93a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/asymmetric_keys/public_key.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ int public_key_verify_signature(const struct public_key *pkey,
139139
ret = -EKEYREJECTED;
140140

141141
out_free_output:
142-
kfree(output);
142+
kfree_sensitive(output);
143143
error_free_req:
144144
akcipher_request_free(req);
145145
error_free_tfm:

0 commit comments

Comments
 (0)