]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit21742f55edf413cd75fcba8c1e92c31fdee9faf5
tree1525308e8024060fdab8f2bff30ed7cf200cdbb9
parent196727962b9f1ca02d948f606886b011c4e0427d
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