[PATCH] Fix uninitialised values in ia64_illegal_op_fault

From: Ian Wienand <ianw_at_gelato.unsw.edu.au>
Date: 2005-07-19 11:24:51
Fix

arch/ia64/kernel/traps.c: In function 'ia64_illegal_op_fault':
arch/ia64/kernel/traps.c:444: warning: 'rv.arg3' is used uninitialized in this function
arch/ia64/kernel/traps.c:444: warning: 'rv.arg2' is used uninitialized in this function
arch/ia64/kernel/traps.c:444: warning: 'rv.arg1' is used uninitialized in this function

--

Signed-Off-By: Ian Wienand <ianw@gelato.unsw.edu.au>

diff --git a/arch/ia64/kernel/traps.c b/arch/ia64/kernel/traps.c
--- a/arch/ia64/kernel/traps.c
+++ b/arch/ia64/kernel/traps.c
@@ -435,6 +435,7 @@ ia64_illegal_op_fault (unsigned long ec,
 	sprintf(buf, "IA-64 Illegal operation fault");
 	die_if_kernel(buf, &regs, 0);
 
+	memset(&rv, 0, sizeof(rv));
 	memset(&si, 0, sizeof(si));
 	si.si_signo = SIGILL;
 	si.si_code = ILL_ILLOPC;
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Jul 18 21:24:58 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:40 EST