linux_dsm_epyc7002/drivers/net/wireless
Johannes Berg e5b72e3bc4 iwlwifi: mvm: limit maximum queue appropriately
Due to some hardware issues, queue 31 isn't usable on devices that have
32 queues (7000, 8000, 9000 families), which is correctly reflected in
the configuration and TX queue initialization.

However, the firmware API and queue allocation code assumes that there
are 32 queues, and if something actually attempts to use #31 this leads
to a NULL-pointer dereference since it's not allocated.

Fix this by limiting to 31 in the IWL_MVM_DQA_MAX_DATA_QUEUE, and also
add some code to catch this earlier in the future, if the configuration
changes perhaps.

Cc: stable@vger.kernel.org # v4.9+
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20200417100405.98a79be2db6a.I3a4af6b03b87a6bc18db9b1ff9a812f397bee1fc@changeid
2020-04-21 15:39:03 +03:00
..
admtek adm80211: Replace zero-length array with flexible-array member 2020-03-23 19:16:11 +02:00
ath ath11k: fix compiler warnings without CONFIG_THERMAL 2020-04-06 17:21:23 +03:00
atmel atmel: at76c50x: Replace zero-length array with flexible-array member 2020-03-23 19:17:11 +02:00
broadcom brcmfmac: add stub for monitor interface xmit 2020-04-06 17:07:44 +03:00
cisco proc: convert everything to "struct proc_ops" 2020-02-04 03:05:26 +00:00
intel iwlwifi: mvm: limit maximum queue appropriately 2020-04-21 15:39:03 +03:00
intersil Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-03-31 17:29:33 -07:00
marvell wireless: marvell: Replace zero-length array with flexible-array member 2020-03-23 19:11:09 +02:00
mediatek wireless-drivers-next patches for v5.7 2020-03-24 16:15:58 -07:00
quantenna qtnfmac: add interface combination check for repeater mode 2020-03-12 15:38:59 +02:00
ralink rt2x00usb: Fix a warning message in 'rt2x00usb_watchdog_tx_dma()' 2019-12-18 20:58:48 +02:00
realtek rtw88: avoid unused function warnings 2020-04-14 15:45:36 +03:00
rsi rsi: fix null pointer dereference during rsi_shutdown() 2020-02-12 18:19:14 +02:00
st cw1200: Replace zero-length array with flexible-array member 2020-03-23 19:14:44 +02:00
ti Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-03-25 18:58:11 -07:00
zydas zd1211rw: Replace zero-length array with flexible-array member 2020-03-23 19:13:28 +02:00
Kconfig
mac80211_hwsim.c mac80211_hwsim: Use kstrndup() in place of kasprintf() 2020-04-14 12:31:46 +02:00
mac80211_hwsim.h mac80211_hwsim: add frame transmission support over virtio 2020-03-20 14:42:19 +01:00
Makefile
ray_cs.c proc: convert everything to "struct proc_ops" 2020-02-04 03:05:26 +00:00
ray_cs.h
rayctl.h ray_cs: Replace zero-length array with flexible-array member 2020-03-23 19:18:27 +02:00
rndis_wlan.c
virt_wifi.c virt_wifi: implement ndo_get_iflink 2020-03-20 14:42:20 +01:00
wl3501_cs.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
wl3501.h wl3501_cs: Replace zero-length array with flexible-array member 2020-03-23 19:21:21 +02:00