patch-2.1.4 linux/arch/i386/kernel/ptrace.c

Next file: linux/arch/i386/kernel/signal.c
Previous file: linux/arch/i386/kernel/ldt.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.3/linux/arch/i386/kernel/ptrace.c linux/arch/i386/kernel/ptrace.c
@@ -423,7 +423,7 @@
 				return res;
 			res = verify_area(VERIFY_WRITE, (void *) data, sizeof(long));
 			if (!res)
-				put_fs_long(tmp,(unsigned long *) data);
+				put_user(tmp,(unsigned long *) data);
 			return res;
 		}
 
@@ -448,7 +448,7 @@
 				addr = addr >> 2;
 				tmp = child->debugreg[addr];
 			};
-			put_fs_long(tmp,(unsigned long *) data);
+			put_user(tmp,(unsigned long *) data);
 			return 0;
 		}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov