net: In __netif_schedule() use WARN_ON instead of BUG_ON
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b6b2fed1f4
commit
867d79fb9a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue