diff options
| author | Qianqiang Liu <[email protected]> | 2024-09-13 14:07:42 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2024-10-16 05:38:16 +0000 |
| commit | cd843399d706411ff80520fb7883afeeefa76e98 (patch) | |
| tree | 552a69cf1f28cea9e11a2ce0929eb2d71f1c291f /lib/crypto/mpi/mpi-mul.c | |
| parent | crypto: marvell/cesa - Disable hash algorithms (diff) | |
| download | kernel-cd843399d706411ff80520fb7883afeeefa76e98.tar.gz kernel-cd843399d706411ff80520fb7883afeeefa76e98.zip | |
crypto: lib/mpi - Fix an "Uninitialized scalar variable" issue
The "err" variable may be returned without an initialized value.
Fixes: 8e3a67f2de87 ("crypto: lib/mpi - Add error checks to extension")
Signed-off-by: Qianqiang Liu <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-mul.c')
| -rw-r--r-- | lib/crypto/mpi/mpi-mul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/mpi/mpi-mul.c b/lib/crypto/mpi/mpi-mul.c index 892a246216b9..7e6ff1ce3e9b 100644 --- a/lib/crypto/mpi/mpi-mul.c +++ b/lib/crypto/mpi/mpi-mul.c @@ -21,7 +21,7 @@ int mpi_mul(MPI w, MPI u, MPI v) int usign, vsign, sign_product; int assign_wp = 0; mpi_ptr_t tmp_limb = NULL; - int err; + int err = 0; if (u->nlimbs < v->nlimbs) { /* Swap U and V. */ |
