2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-15 17:14:00 +08:00
linux-next/drivers/net/wireless
Emmanuel Grumbach 0eac9abace iwlwifi: mvm: fix TSO with highly fragmented SKBs
Our hardware has a limited amount of buffer descriptors
for each Tx packet. Because of that, there is a short
piece of code that makes sure that that we don't push too
many subframes in an A-MSDU because of subframes needs 2
buffer descriptors. This code also takes into account the
number of fragment of the skb since we also need a buffer
descriptor for each fragment in the skb.

This piece of code though didn't check that the resulting
number of subframes wasn't 0.

A user reported that using NFS client, he could get skbs
that are so fragmented that the code mentioned above
returned 0 for the number of subframes making
skb_gso_segment fail and subconsequently iwlwifi would WARN.

Fix this by make sure that num_subframes is at least 1.

This fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=199209

Fixes: a6d5e32f24 ("iwlwifi: mvm: send large SKBs to the transport")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2018-05-30 09:33:36 +03:00
..
admtek net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
ath Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2018-05-23 10:42:08 +03:00
atmel atmel: Add missing call to pci_disable_device() 2018-05-29 10:19:00 +03:00
broadcom brcmfmac: trigger memory dump on SDIO firmware halt message 2018-05-23 18:52:02 +03:00
cisco Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-04-03 14:04:18 -07:00
intel iwlwifi: mvm: fix TSO with highly fragmented SKBs 2018-05-30 09:33:36 +03:00
intersil wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
marvell mwifiex: reserve passive scan time for radar channel 2018-05-29 10:27:01 +03:00
mediatek mt76: use udelay instead of usleep_range in mt76x2_mac_stop 2018-05-23 10:58:20 +03:00
quantenna wireless-drivers: Dynamically allocate struct station_info 2018-05-12 11:51:14 +03:00
ralink rt2x00: check against flushing empty queue 2018-05-04 15:34:20 +03:00
realtek rtlwifi: remove duplicate code 2018-05-29 10:28:24 +03:00
rsi rsi: fix spelling mistake "Uknown" -> "Unknown" 2018-05-29 10:21:35 +03:00
st cw1200: fix spelling mistake: "Mailformed" -> "Malformed" 2018-04-24 20:23:05 +03:00
ti wlcore: sdio: check for valid platform device data before suspend 2018-05-29 10:20:56 +03:00
zydas net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
Kconfig
mac80211_hwsim.c mac80211_hwsim: fix a possible memory leak in hwsim_new_radio_nl() 2018-05-07 15:01:29 +02:00
mac80211_hwsim.h mac80211_hwsim: add permanent mac address option for new radios 2018-01-31 12:45:35 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ray_cs.c wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
ray_cs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rayctl.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rndis_wlan.c
wl3501_cs.c
wl3501.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00