]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sys_prctl(): fix return of uninitialized value
authorShi Weihua <shiwh@cn.fujitsu.com>
Fri, 23 May 2008 20:04:59 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 May 2008 16:56:13 +0000 (09:56 -0700)
commit7b26655f6208fdefa9ab0adc016116324f8d4ba8
tree07f081c52da72a9730861c74ebea86ea48d402e2
parentf99c90094bffbe1cf38ef66f198a808c14a02d56
sys_prctl(): fix return of uninitialized value

If none of the switch cases match, the PR_SET_PDEATHSIG and
PR_SET_DUMPABLE cases of the switch statement will never write to local
variable `error'.

Signed-off-by: Shi Weihua <shiwh@cn.fujitsu.com>
Cc: Andrew G. Morgan <morgan@kernel.org>
Acked-by: "Serge E. Hallyn" <serue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sys.c