aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/kernel/ptrace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
index 55613e33e263..4edeeb325429 100644
--- a/arch/powerpc/kernel/ptrace.c
+++ b/arch/powerpc/kernel/ptrace.c
@@ -1591,7 +1591,10 @@ long arch_ptrace(struct task_struct *child, long request,
1591 } 1591 }
1592 1592
1593 case PTRACE_SET_DEBUGREG: 1593 case PTRACE_SET_DEBUGREG:
1594 if (ptrace_get_breakpoints(child) < 0)
1595 return -ESRCH;
1594 ret = ptrace_set_debugreg(child, addr, data); 1596 ret = ptrace_set_debugreg(child, addr, data);
1597 ptrace_put_breakpoints(child);
1595 break; 1598 break;
1596 1599
1597#ifdef CONFIG_PPC64 1600#ifdef CONFIG_PPC64