diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 081ece26803f0f7b3f1894ef0beac500fc2615b3..8ffe523dfa8ecbd2848231d9fb8e0e9abbec487a 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -3077,6 +3077,9 @@ static noinline void __schedule_bug(struct task_struct *prev) { struct pt_regs *regs = get_irq_regs(); + if (oops_in_progress) + return; + printk(KERN_ERR "BUG: scheduling while atomic: %s/%d/0x%08x\n", prev->comm, prev->pid, preempt_count());