From: Naveen N. Rao Date: Wed, 19 Apr 2017 12:51:06 +0000 (+0530) Subject: powerpc/kprobes: Remove duplicate saving of MSR X-Git-Tag: v4.14-rc1~913^2~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d08f8a28bcc8c2004a7186839148fc9aadd5cc6f;p=platform%2Fkernel%2Flinux-rpi.git powerpc/kprobes: Remove duplicate saving of MSR set_current_kprobe() already saves regs->msr into kprobe_saved_msr. Remove the redundant save. Signed-off-by: Naveen N. Rao Reviewed-by: Masami Hiramatsu Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/kernel/kprobes.c b/arch/powerpc/kernel/kprobes.c index fce05a3..5a8601c 100644 --- a/arch/powerpc/kernel/kprobes.c +++ b/arch/powerpc/kernel/kprobes.c @@ -177,7 +177,6 @@ int __kprobes kprobe_handler(struct pt_regs *regs) */ save_previous_kprobe(kcb); set_current_kprobe(p, regs, kcb); - kcb->kprobe_saved_msr = regs->msr; kprobes_inc_nmissed_count(p); prepare_singlestep(p, regs); kcb->kprobe_status = KPROBE_REENTER;