From: Jie Zhang Date: Fri, 20 Nov 2009 22:52:08 +0000 (+0000) Subject: Blackfin: fix typo in ptrace poking X-Git-Tag: v2.6.32~33^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46b60faf8c68a200bbccbe5bc6e51c414145b9af;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: Mike Frysinger --- 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;