Skip to content

Commit 46b60fa

Browse files
jiezvapier
authored andcommitted
Blackfin: fix typo in ptrace poking
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>
1 parent a2ca78c commit 46b60fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/blackfin/kernel/ptrace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
315315
case BFIN_MEM_ACCESS_CORE:
316316
case BFIN_MEM_ACCESS_CORE_ONLY:
317317
copied = access_process_vm(child, addr, &data,
318-
to_copy, 0);
318+
to_copy, 1);
319319
if (copied)
320320
break;
321321

0 commit comments

Comments
 (0)