From: Naveen N. Rao Date: Wed, 19 Apr 2017 12:51:06 +0000 (+0530) Subject: powerpc/kprobes: Remove duplicate saving of MSR X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d08f8a28bcc8c2004a7186839148fc9aadd5cc6f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 fce05a38851c..5a8601c95bbe 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;