mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-14 09:47:20 +00:00
arch/tile: avoid erroneous error return for PTRACE_POKEUSR.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> Acked-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
c6673cb54d
commit
bcd97c3f9a
@ -96,6 +96,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
|
|||||||
if (addr < 0 || addr >= PTREGS_SIZE)
|
if (addr < 0 || addr >= PTREGS_SIZE)
|
||||||
break;
|
break;
|
||||||
putreg(child, addr, data); /* Write register */
|
putreg(child, addr, data); /* Write register */
|
||||||
|
ret = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PTRACE_GETREGS: /* Get all registers from the child. */
|
case PTRACE_GETREGS: /* Get all registers from the child. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user