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
- Lines: 11
- Date:
Wed Oct 20 16:29:08 1999
- Orig file:
v2.3.22/linux/arch/arm/kernel/ptrace.c
- Orig date:
Tue Aug 31 17:29:12 1999
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)