net: In __netif_schedule() use WARN_ON instead of BUG_ON
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 21 Jul 2008 16:54:18 +0000 (09:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2008 17:10:49 +0000 (10:10 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c

index 7e2d5274333fb7302a2354371ad93eb5556d3080..cbc34c0db3762dd0962ff250078e22679e8d4820 100644 (file)
@@ -1327,7 +1327,8 @@ static void dev_queue_xmit_nit(struct sk_buff *skb, struct net_device *dev)
 
 void __netif_schedule(struct Qdisc *q)
 {
-       BUG_ON(q == &noop_qdisc);
+       if (WARN_ON_ONCE(q == &noop_qdisc))
+               return;
 
        if (!test_and_set_bit(__QDISC_STATE_SCHED, &q->state)) {
                struct softnet_data *sd;