patch-2.4.21 linux-2.4.21/arch/sparc/kernel/windows.c

Next file: linux-2.4.21/arch/sparc/kernel/wof.S
Previous file: linux-2.4.21/arch/sparc/kernel/traps.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/arch/sparc/kernel/windows.c linux-2.4.21/arch/sparc/kernel/windows.c
@@ -120,7 +120,7 @@
 		unsigned long sp = tp->rwbuf_stkptrs[window];
 
 		if((sp & 7) ||
-		   copy_to_user((char *) sp, &tp->reg_window[window], REGWIN_SZ))
+		   copy_to_user((char *) sp, &tp->reg_window[window], sizeof(struct reg_window)))
 			do_exit(SIGILL);
 	}
 	tp->w_saved = 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)