Message ID | alpine.DEB.2.22.394.2107061049150.7197@hadrien (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | lib: fix bugon.cocci warnings | expand |
--- a/arch/csky/kernel/probes/kprobes.c +++ b/arch/csky/kernel/probes/kprobes.c @@ -283,8 +283,7 @@ int __kprobes kprobe_fault_handler(struc * normal page fault. */ regs->pc = (unsigned long) cur->addr; - if (!instruction_pointer(regs)) - BUG(); + BUG_ON(!instruction_pointer(regs)); if (kcb->kprobe_status == KPROBE_REENTER) restore_previous_kprobe(kcb);