From: Linus Torvalds Date: Mon, 21 Jul 2008 16:54:18 +0000 (-0700) Subject: net: In __netif_schedule() use WARN_ON instead of BUG_ON X-Git-Tag: v2.6.27-rc1~953^2~10 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=867d79fb9a4d5929ad8335c896fcfe11c3b2ef14;p=linux-2.6 net: In __netif_schedule() use WARN_ON instead of BUG_ON Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index 7e2d527433..cbc34c0db3 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -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;