Skip to content

Commit cd84339

Browse files
Qianqiang Liuherbertx
authored andcommitted
crypto: lib/mpi - Fix an "Uninitialized scalar variable" issue
The "err" variable may be returned without an initialized value. Fixes: 8e3a67f ("crypto: lib/mpi - Add error checks to extension") Signed-off-by: Qianqiang Liu <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent e845d23 commit cd84339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/crypto/mpi/mpi-mul.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ int mpi_mul(MPI w, MPI u, MPI v)
2121
int usign, vsign, sign_product;
2222
int assign_wp = 0;
2323
mpi_ptr_t tmp_limb = NULL;
24-
int err;
24+
int err = 0;
2525

2626
if (u->nlimbs < v->nlimbs) {
2727
/* Swap U and V. */

0 commit comments

Comments
 (0)