crypto: marvell/cesa - fix uninit value for struct mv_cesa_op_ctx
authorKarol Przybylski <karprzy7@gmail.com>
Sun, 10 Nov 2024 18:50:58 +0000 (19:50 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Nov 2024 11:52:51 +0000 (19:52 +0800)
commit4223414efeae3a8efb4da1e9c9c52a1a44c1c5bf
treedfa8d7c0407e6654510850ba9370a5b5c705c598
parent572b7cf08403b6c67dfe0dc3e0f2efb42443254f
crypto: marvell/cesa - fix uninit value for struct mv_cesa_op_ctx

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: 160094216009391600935160093416009291600927,
160092516009211600920160091916009151600914

Signed-off-by: Karol Przybylski <karprzy7@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/cesa/cipher.c