Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46b60faf authored by Jie Zhang's avatar Jie Zhang Committed by Mike Frysinger
Browse files

Blackfin: fix typo in ptrace poking



Commit c014e15a (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: default avatarJie Zhang <jie.zhang@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent a2ca78ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;