projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
776ca15
)
sparc: vDSO: Silence an uninitialized variable warning
author
Dan Carpenter
<dan.carpenter@oracle.com>
Sat, 13 Oct 2018 10:26:53 +0000
(13:26 +0300)
committer
David S. Miller
<davem@davemloft.net>
Thu, 18 Oct 2018 04:55:02 +0000
(21:55 -0700)
Smatch complains that "val" would be uninitialized if kstrtoul() fails.
Fixes: 9a08862a5d2e ("vDSO for sparc")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/vdso/vma.c
patch
|
blob
|
history
diff --git
a/arch/sparc/vdso/vma.c
b/arch/sparc/vdso/vma.c
index f51595f861b85999f62e0ac7db3f7726a486eede..5eaff3c1aa0c73110ba0668709b6da5c5fd87736 100644
(file)
--- a/
arch/sparc/vdso/vma.c
+++ b/
arch/sparc/vdso/vma.c
@@
-262,7
+262,9
@@
static __init int vdso_setup(char *s)
unsigned long val;
err = kstrtoul(s, 10, &val);
+ if (err)
+ return err;
vdso_enabled = val;
- return
err
;
+ return
0
;
}
__setup("vdso=", vdso_setup);