arch/tile: avoid erroneous error return for PTRACE_POKEUSR.
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 2 Jul 2010 18:17:52 +0000 (14:17 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 6 Jul 2010 17:42:10 +0000 (13:42 -0400)
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
arch/tile/kernel/ptrace.c

index e5701d1..7161bd0 100644 (file)
@@ -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. */