Skip to contentSkip to conversation

lib-fix-bugoncocci-warnings.patch removed from -mm tree

merged [email protected] 1 participant 1 message Sep 3, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: arch/csky/kernel/probes/kprobes.c: fix bugon.cocci warnings
has been removed from the -mm tree. Its filename was
lib-fix-bugoncocci-warnings.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: kernel test robot <[email protected]>
Subject: arch/csky/kernel/probes/kprobes.c: fix bugon.cocci warnings

Use BUG_ON instead of a if condition followed by BUG.

Generated by: scripts/coccinelle/misc/bugon.cocci

---

 arch/csky/kernel/probes/kprobes.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/csky/kernel/probes/kprobes.c renamed from arch/csky/kernel/probes/kprobes.c~lib-fix-bugoncocci-warnings +1 -2
@@ -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);

_

Patches currently in -mm which might be from [email protected] are