aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-07-21 12:54:18 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-21 13:10:49 -0400
commit867d79fb9a4d5929ad8335c896fcfe11c3b2ef14 (patch)
treeb33fe42bfc1e73b9e0f65baf9f02ddc437e6dc83
parentb6b2fed1f4802b8fcc9d7548a8f785225d38f9a3 (diff)
net: In __netif_schedule() use WARN_ON instead of BUG_ON
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/core/dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 7e2d5274333f..cbc34c0db376 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)
1327 1327
1328void __netif_schedule(struct Qdisc *q) 1328void __netif_schedule(struct Qdisc *q)
1329{ 1329{
1330 BUG_ON(q == &noop_qdisc); 1330 if (WARN_ON_ONCE(q == &noop_qdisc))
1331 return;
1331 1332
1332 if (!test_and_set_bit(__QDISC_STATE_SCHED, &q->state)) { 1333 if (!test_and_set_bit(__QDISC_STATE_SCHED, &q->state)) {
1333 struct softnet_data *sd; 1334 struct softnet_data *sd;