Re: [PATCH] LoongArch: kprobes: Avoid preempt count underflow without probe
Wentao Guan <[email protected]>
| Newsgroups | dev.linux.lists.loongarch,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Hello, > @@ -275,6 +275,9 @@ bool kprobe_singlestep_handler(struct pt_regs *regs) > struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); > unsigned long addr = instruction_pointer(regs); > > + if (!cur) > + return false; > + This patch looks good to me. BRs Wentao Guan