crypto: sun8i-ss - Use kfree_sensitive
authorJason Wang <wangborong@cdjrlc.com>
Tue, 20 Jul 2021 13:01:04 +0000 (21:01 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Jul 2021 02:58:35 +0000 (10:58 +0800)
commit192b722f3866d3fb45b9e6a6ecd02ff09f2aefbe
tree1525308e8024060fdab8f2bff30ed7cf200cdbb9
parentec2088b66f7a143eb14063f598d0bb3f64654c38
crypto: sun8i-ss - Use kfree_sensitive

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-ss/sun8i-ss-prng.c