uninitialized variable in install_sigtramp()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux