diff options
author | Jie Zhang <jie.zhang@analog.com> | 2009-11-20 22:52:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-11-25 02:35:43 -0500 |
commit | 46b60faf8c68a200bbccbe5bc6e51c414145b9af (patch) | |
tree | 9091d87d97864ffcfaef9613d94187981e6ed4b3 /arch/blackfin/kernel/ptrace.c | |
parent | a2ca78cee1c428843f6833150c7e64db05f9d668 (diff) | |
download | linux-46b60faf8c68a200bbccbe5bc6e51c414145b9af.tar.bz2 |
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>
Diffstat (limited to 'arch/blackfin/kernel/ptrace.c')
-rw-r--r-- | arch/blackfin/kernel/ptrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/kernel/ptrace.c b/arch/blackfin/kernel/ptrace.c index 0982b5d5af10..56b0ba12175f 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; |