patch-2.3.23 linux/arch/arm/kernel/ptrace.c

Next file: linux/arch/arm/kernel/semaphore.c
Previous file: linux/arch/arm/kernel/process.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.22/linux/arch/arm/kernel/ptrace.c linux/arch/arm/kernel/ptrace.c
@@ -447,8 +447,8 @@
 			unsigned long tmp;
 
 			ret = read_long(child, addr, &tmp);
-			if (ret)
-				put_user(tmp, (unsigned long *) data);
+			if (!ret)
+				ret = put_user(tmp, (unsigned long *) data);
 			goto out;
 		}
 

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