summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Sliwa <dominik.sliwa@toradex.com>2019-02-21 14:33:57 +0100
committerDominik Sliwa <dominik.sliwa@toradex.com>2019-02-21 14:33:57 +0100
commitab21f140422d6e25a4f0a1c1faf502b34dd5b30d (patch)
tree6943e469e5415197b3dce72ef76c8c6a1d44ccd7
parent005f0ce4be60eed2ac604094011048cd38f60ea2 (diff)
backports: mt76: fix skb_pad
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
-rw-r--r--patches/0092-mt76-skb-pad.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/0092-mt76-skb-pad.patch b/patches/0092-mt76-skb-pad.patch
new file mode 100644
index 00000000..68be3f21
--- /dev/null
+++ b/patches/0092-mt76-skb-pad.patch
@@ -0,0 +1,16 @@
+diff --git a/drivers/net/wireless/mediatek/mt76/usb.c b/drivers/net/wireless/mediatek/mt76/usb.c
+index 79e59f2..363bea8 100644
+--- a/drivers/net/wireless/mediatek/mt76/usb.c
++++ b/drivers/net/wireless/mediatek/mt76/usb.c
+@@ -535,7 +535,11 @@ int mt76u_skb_dma_info(struct sk_buff *skb, int port, u32 flags)
+ }
+
+ if (unlikely(pad)) {
++#if LINUX_VERSION_IS_GEQ(4,14,0)
+ if (__skb_pad(last, pad, true))
++#else
++ if (skb_pad(last, pad))
++#endif
+ return -ENOMEM;
+ __skb_put(last, pad);
+ }