summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2009-11-20 22:52:08 +0000
committerMike Frysinger <vapier@gentoo.org>2009-11-25 02:35:43 -0500
commit46b60faf8c68a200bbccbe5bc6e51c414145b9af (patch)
tree9091d87d97864ffcfaef9613d94187981e6ed4b3
parenta2ca78cee1c428843f6833150c7e64db05f9d668 (diff)
downloadop-kernel-dev-46b60faf8c68a200bbccbe5bc6e51c414145b9af.zip
op-kernel-dev-46b60faf8c68a200bbccbe5bc6e51c414145b9af.tar.gz
Blackfin: fix typo in ptrace poking
Commit c014e15a2f667f9 (Blackfin: convert ptrace to new memory functions) introduced a copy & paste typo in the ptrace poke data/text handling. The access_process_vm() function call was telling it to read instead of write. Signed-off-by: Jie Zhang <jie.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--arch/blackfin/kernel/ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/kernel/ptrace.c b/arch/blackfin/kernel/ptrace.c
index 0982b5d..56b0ba1 100644
--- a/arch/blackfin/kernel/ptrace.c
+++ b/arch/blackfin/kernel/ptrace.c
@@ -315,7 +315,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
case BFIN_MEM_ACCESS_CORE:
case BFIN_MEM_ACCESS_CORE_ONLY:
copied = access_process_vm(child, addr, &data,
- to_copy, 0);
+ to_copy, 1);
if (copied)
break;
OpenPOWER on IntegriCloud