Skip to content

Commit

Permalink
arch/tile: avoid erroneous error return for PTRACE_POKEUSR.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Chris Metcalf committed Jul 6, 2010
1 parent c6673cb commit bcd97c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/tile/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
if (addr < 0 || addr >= PTREGS_SIZE)
break;
putreg(child, addr, data); /* Write register */
ret = 0;
break;

case PTRACE_GETREGS: /* Get all registers from the child. */
Expand Down

0 comments on commit bcd97c3

Please sign in to comment.