Skip to content

Commit

Permalink
Blackfin: fix typo in ptrace poking
Browse files Browse the repository at this point in the history
Commit c014e15 (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>
  • Loading branch information
Jie Zhang authored and Mike Frysinger committed Nov 25, 2009
1 parent a2ca78c commit 46b60fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/blackfin/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 46b60fa

Please sign in to comment.