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:
parent
2d4186cef9
commit
641e9b73d8
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue