projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e845d23
)
crypto: lib/mpi - Fix an "Uninitialized scalar variable" issue
author
Qianqiang Liu
<qianqiang.liu@163.com>
Fri, 13 Sep 2024 14:07:42 +0000
(22:07 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 16 Oct 2024 05:38:16 +0000
(13:38 +0800)
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 <qianqiang.liu@163.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/crypto/mpi/mpi-mul.c
patch
|
blob
|
history
diff --git
a/lib/crypto/mpi/mpi-mul.c
b/lib/crypto/mpi/mpi-mul.c
index 892a246216b9c22082a3e40d5acc805e65d4b08d..7e6ff1ce3e9b63fb4fdfbbf43355f97d25fb005e 100644
(file)
--- 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. */