Commit cdd56702 authored by David S. Miller's avatar David S. Miller

[NET]: In dev_kfree_skb_any() use dev_kfree_skb_irq() if irqs_disabled().

With help from Jeff Garzik and others.
parent ead7297a
...@@ -634,7 +634,7 @@ static inline void dev_kfree_skb_irq(struct sk_buff *skb) ...@@ -634,7 +634,7 @@ static inline void dev_kfree_skb_irq(struct sk_buff *skb)
*/ */
static inline void dev_kfree_skb_any(struct sk_buff *skb) static inline void dev_kfree_skb_any(struct sk_buff *skb)
{ {
if (in_irq()) if (in_irq() || irqs_disabled())
dev_kfree_skb_irq(skb); dev_kfree_skb_irq(skb);
else else
dev_kfree_skb(skb); dev_kfree_skb(skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment