Re: [PATCH] crypto: marvell/cesa: fix uninit value for struct mv_cesa_op_ctx
From: Herbert Xu
Date: Fri Nov 15 2024 - 07:14:25 EST
On Sun, Nov 10, 2024 at 07:50:58PM +0100, Karol Przybylski wrote:
> In cesa/cipher.c most declarations of struct mv_cesa_op_ctx are uninitialized.
> This causes one of the values in the struct to be left unitialized in later
> usages.
>
> This patch fixes it by adding initializations in the same way it is done in
> cesa/hash.c.
>
> Fixes errors discovered in coverity: 1600942, 1600939, 1600935, 1600934, 1600929, 1600927,
> 1600925, 1600921, 1600920, 1600919, 1600915, 1600914
>
> Signed-off-by: Karol Przybylski <karprzy7@xxxxxxxxx>
> ---
> drivers/crypto/marvell/cesa/cipher.c | 24 ++++++++++++------------
> 1 file changed, 12 insertions(+), 12 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt