diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2018-09-23 19:45:32 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-09-24 09:28:51 +0200 |
commit | 3998113bb027edb146d9413aef78b048059e8c00 (patch) | |
tree | 555eb91b689394c24525bdb12cf8cb49fc8895c2 | |
parent | 74017621786113ea1d090667788524ef677ff072 (diff) |
patches: make mt76 use skb_pad() instead of __skb_pad()
__skb_pad() was only added with kernel 4.13.
The free_on_error parameter of __skb_pad() is set to constant true,
which is also the setting used by skb_pad() so it should be save to use
skb_pad() instead.
This patch should be added to the mainline Linux kernel.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | patches/0090-use-skb_pad.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/patches/0090-use-skb_pad.patch b/patches/0090-use-skb_pad.patch new file mode 100644 index 00000000..086328c1 --- /dev/null +++ b/patches/0090-use-skb_pad.patch @@ -0,0 +1,11 @@ +--- a/drivers/net/wireless/mediatek/mt76/usb.c ++++ b/drivers/net/wireless/mediatek/mt76/usb.c +@@ -535,7 +535,7 @@ int mt76u_skb_dma_info(struct sk_buff *s + } + + if (unlikely(pad)) { +- if (__skb_pad(last, pad, true)) ++ if (skb_pad(last, pad)) + return -ENOMEM; + __skb_put(last, pad); + } |