Re: [PATCH v2] crypto: sun8i-ce: use kfree_sensitive() instead of

2021-03-02 Thread Herbert Xu
On Tue, Mar 02, 2021 at 05:09:05PM +0800, Yang Li wrote: > Use kfree_sensitive() instead of using kfree() to make the intention > of the API more explicit. Why did you keep the memzeros? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

[PATCH v2] crypto: sun8i-ce: use kfree_sensitive() instead of

2021-03-02 Thread Yang Li
Use kfree_sensitive() instead of using kfree() to make the intention of the API more explicit. fixed the following coccicheck: ./drivers/crypto/allwinner/sun8i-ce/sun8i-ce-prng.c:30:16-17: WARNING opportunity for kfree_sensitive/kvfree_sensitive (memset at line 29)