linux-mips
[Top] [All Lists]

uninitialized variable in install_sigtramp()

To: linux-mips@linux-mips.org
Subject: uninitialized variable in install_sigtramp()
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Wed, 07 Sep 2005 22:58:59 +0900 (JST)
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
This is a simple fix.  Removing the 'err' variable entirely could be
alternative fix while the return value of install_sigtramp().

Index: arch/mips/kernel/signal-common.h
===================================================================
RCS file: /home/cvs/linux/arch/mips/kernel/signal-common.h,v
retrieving revision 1.7
diff -u -r1.7 signal-common.h
--- arch/mips/kernel/signal-common.h    14 Jul 2005 12:05:05 -0000      1.7
+++ arch/mips/kernel/signal-common.h    7 Sep 2005 13:38:33 -0000
@@ -182,7 +182,7 @@
 static inline int install_sigtramp(unsigned int __user *tramp,
        unsigned int syscall)
 {
-       int err;
+       int err = 0;
 
        /*
         * Set up the return code ...
---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>