mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
Merge "net: usb: ax88179: Change to check if the packets are coming from gsb"
This commit is contained in:
commit
fe311b837c
1 changed files with 9 additions and 1 deletions
|
|
@ -1431,12 +1431,20 @@ ax88179_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags)
|
|||
|
||||
headroom = skb_headroom(skb) - 8;
|
||||
|
||||
#ifdef CONFIG_ENABLE_SFE
|
||||
if (((!(skb->fast_forwarded) && skb_header_cloned(skb)) ||
|
||||
headroom < 0) &&
|
||||
pskb_expand_head(skb, headroom < 0 ? 8 : 0, 0, GFP_ATOMIC)) {
|
||||
dev_kfree_skb_any(skb);
|
||||
return NULL;
|
||||
}
|
||||
#else
|
||||
if ((skb_header_cloned(skb) || headroom < 0) &&
|
||||
pskb_expand_head(skb, headroom < 0 ? 8 : 0, 0, GFP_ATOMIC)) {
|
||||
dev_kfree_skb_any(skb);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif
|
||||
ptr = skb_push(skb, 8);
|
||||
put_unaligned_le32(tx_hdr1, ptr);
|
||||
put_unaligned_le32(tx_hdr2, ptr + 4);
|
||||
|
|
|
|||
Loading…
Reference in a new issue