projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6b2fed
)
net: In __netif_schedule() use WARN_ON instead of BUG_ON
author
Linus Torvalds
<torvalds@linux-foundation.org>
Mon, 21 Jul 2008 16:54:18 +0000
(09:54 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 21 Jul 2008 17:10:49 +0000
(10:10 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index 7e2d5274333fb7302a2354371ad93eb5556d3080..cbc34c0db3762dd0962ff250078e22679e8d4820 100644
(file)
--- 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)
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;