]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
crypto: sun8i-ce - use kfree_sensitive to clear and free sensitive data
authorJason Wang <wangborong@cdjrlc.com>
Tue, 3 Aug 2021 12:55:25 +0000 (20:55 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Aug 2021 11:16:57 +0000 (19:16 +0800)
commitc391714c04971f5f68e3685bd7da940c9b90036d
tree81ec72a041cc6e80bef7a833c250dab17c2346bd
parent0888d04b47a165ae8c429c6fe11b3c43f5017f31
crypto: sun8i-ce - use kfree_sensitive to clear and free sensitive data

The kfree_sensitive is a kernel API to clear sensitive information
that should not be leaked to other future users of the same memory
objects and free the memory. Its function is the same as the
combination  of memzero_explicit and kfree. Thus, we can replace the
combination APIs with the single kfree_sensitive API.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-prng.c
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-trng.c