From bcd97c3f9a385e8e658a416cd72dd65ca0eeb544 Mon Sep 17 00:00:00 2001 From: Chris Metcalf Date: Fri, 2 Jul 2010 14:17:52 -0400 Subject: arch/tile: avoid erroneous error return for PTRACE_POKEUSR. Signed-off-by: Chris Metcalf Acked-by: Arnd Bergmann --- arch/tile/kernel/ptrace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/tile/kernel/ptrace.c b/arch/tile/kernel/ptrace.c index e5701d1a52d7..7161bd03d2fd 100644 --- a/arch/tile/kernel/ptrace.c +++ b/arch/tile/kernel/ptrace.c @@ -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. */ -- cgit v1.2.3