Merge tag 'hardening-v6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees...
[platform/kernel/linux-rpi.git] / kernel / sched / core.c
index 9e3c89c..25b582b 100644 (file)
@@ -5782,8 +5782,7 @@ static noinline void __schedule_bug(struct task_struct *prev)
                pr_err("Preemption disabled at:");
                print_ip_sym(KERN_ERR, preempt_disable_ip);
        }
-       if (panic_on_warn)
-               panic("scheduling while atomic\n");
+       check_panic_on_warn("scheduling while atomic");
 
        dump_stack();
        add_taint(TAINT_WARN, LOCKDEP_STILL_OK);