提交 867d79fb 编写于 作者: L Linus Torvalds 提交者: David S. Miller

net: In __netif_schedule() use WARN_ON instead of BUG_ON

Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b6b2fed1
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册