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 e5701d1a52d78ddec3c2f45635834155d235ecb7..7161bd03d2fdbe8d057587f20c4adf3ffffcb61a 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. */