Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 867d79fb authored by Linus Torvalds's avatar Linus Torvalds Committed by David S. Miller
Browse files

net: In __netif_schedule() use WARN_ON instead of BUG_ON

parent b6b2fed1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;