aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/kprobes.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/kprobes.c')
-rw-r--r--arch/powerpc/kernel/kprobes.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/kprobes.c b/arch/powerpc/kernel/kprobes.c
index cb1fe5878e8b..aea25dd18dae 100644
--- a/arch/powerpc/kernel/kprobes.c
+++ b/arch/powerpc/kernel/kprobes.c
@@ -396,6 +396,9 @@ int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
396 struct die_args *args = (struct die_args *)data; 396 struct die_args *args = (struct die_args *)data;
397 int ret = NOTIFY_DONE; 397 int ret = NOTIFY_DONE;
398 398
399 if (args->regs && user_mode(args->regs))
400 return ret;
401
399 switch (val) { 402 switch (val) {
400 case DIE_BPT: 403 case DIE_BPT:
401 if (kprobe_handler(args->regs)) 404 if (kprobe_handler(args->regs))