KEYS: use kfree_sensitive with key
authorMahmoud Adam <mngyadam@amazon.com>
Mon, 17 Jul 2023 12:55:09 +0000 (12:55 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Jul 2023 10:20:25 +0000 (18:20 +0800)
commit9f3fa6bc4ff8515da1349c44a77e7327bd2f4788
tree8469daabfca0535a9e19805022aeb74687450978
parente22471c2331c984ba48e89acd00d0ba1f60a3ea7
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 <mngyadam@amazon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/asymmetric_keys/public_key.c