ksz884x: Call dev_consume_skb_any instead of dev_kfree_skb.

Replace dev_kfree_skb with dev_consume_skb_any in copy_old_skb that can
be called in hard irq and other contexts.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
Eric W. Biederman 2014-03-24 17:41:43 -07:00
parent 2d4186cef9
commit 641e9b73d8
1 changed files with 1 additions and 1 deletions

View File

@ -4832,7 +4832,7 @@ static inline void copy_old_skb(struct sk_buff *old, struct sk_buff *skb)
skb->csum = old->csum; skb->csum = old->csum;
skb_set_network_header(skb, ETH_HLEN); skb_set_network_header(skb, ETH_HLEN);
dev_kfree_skb(old); dev_consume_skb_any(old);
} }
/** /**