Commit d9a8f6d7 authored by Andrew Morton's avatar Andrew Morton Committed by Ben Collins

[PATCH] Use WARN_ON in local_bh_enable()

This BUG_ON is triggering via ppp's line discipline flushing, due to
brokenness in tty_io.c.

We need to fix tty.  Meanwhile, let's not gratuitously nuke people's boxes.
parent b95baca0
...@@ -102,7 +102,7 @@ asmlinkage void do_softirq(void) ...@@ -102,7 +102,7 @@ asmlinkage void do_softirq(void)
void local_bh_enable(void) void local_bh_enable(void)
{ {
__local_bh_enable(); __local_bh_enable();
BUG_ON(irqs_disabled()); WARN_ON(irqs_disabled());
if (unlikely(!in_interrupt() && if (unlikely(!in_interrupt() &&
local_softirq_pending())) local_softirq_pending()))
invoke_softirq(); invoke_softirq();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment