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
- Lines: 9
- Date:
2003-06-13 07:51:32.000000000 -0700
- Orig file:
linux-2.4.20/arch/sparc/kernel/windows.c
- Orig date:
2001-10-30 15:08:11.000000000 -0800
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)