Skip to content

Commit

Permalink
net: In __netif_schedule() use WARN_ON instead of BUG_ON
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Linus Torvalds authored and David S. Miller committed Jul 21, 2008
1 parent b6b2fed commit 867d79f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 867d79f

Please sign in to comment.