linux/drivers/net/wireless/intel/iwlwifi/mvm
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
..
binding.c
coex.c iwlwifi: mvm: simplify some return conditions 2019-02-04 12:27:18 +02:00
constants.h iwlwifi: mvm: don't send the IWL_MVM_RXQ_NSSN_SYNC notif to Rx queues 2020-01-22 19:13:28 +02:00
d3.c iwlwifi: scan: support FW APIs with variable number of profiles 2020-03-27 08:12:53 +02:00
debugfs-vif.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-05-02 22:14:21 -04:00
debugfs.c iwlwifi: mvm: remove newline from rs_pretty_print_rate() 2020-03-27 08:12:53 +02:00
debugfs.h
ftm-initiator.c iwlwifi: mvm: add support for non EDCA based measurements 2020-03-27 08:12:49 +02:00
ftm-responder.c iwlwifi: mvm: add support for responder config command version 7 2019-12-23 11:54:31 +02:00
fw-api.h iwlwifi: mvm: add soc latency support 2020-03-27 08:12:46 +02:00
fw.c wireless-drivers-next patches for v5.7 2020-03-27 15:40:24 -07:00
led.c iwlwifi: check kasprintf() return value 2019-11-20 12:28:56 +02:00
mac80211.c iwlwifi: scan: support FW APIs with variable number of profiles 2020-03-27 08:12:53 +02:00
mac-ctxt.c iwlwifi: mvm: Invert the condition for OFDM rate 2019-10-25 10:10:24 +03:00
Makefile iwlwifi: mvm: support FTM initiator 2019-02-14 11:29:43 +02:00
mvm.h iwlwifi: scan: support FW APIs with variable number of profiles 2020-03-27 08:12:53 +02:00
nvm.c iwlwifi: mvm: Do not require PHY_SKU NVM section for 3168 devices 2020-02-13 12:02:54 +02:00
offloading.c
ops.c iwlwifi: add device name to device_info 2020-01-04 12:48:41 +02:00
phy-ctxt.c iwlwifi: mvm: look for the first supported channel when add/remove phy ctxt 2019-09-06 15:31:22 +03:00
power.c iwlwifi: mvm: update powersave correctly for D3 2019-12-20 14:23:24 +02:00
quota.c
rs-fw.c wireless-drivers-next patches for v5.7 2020-03-27 15:40:24 -07:00
rs.c iwlwifi: mvm: remove newline from rs_pretty_print_rate() 2020-03-27 08:12:53 +02:00
rs.h iwlwifi: mvm: in VHT connection use only VHT capabilities 2019-11-15 09:31:56 +02:00
rx.c iwlwifi: mvm: beacon statistics shouldn't go backwards 2020-04-21 15:39:01 +03:00
rxmq.c iwlwifi: mvm: don't send the IWL_MVM_RXQ_NSSN_SYNC notif to Rx queues 2020-01-22 19:13:28 +02:00
scan.c iwlwifi: scan: support FW APIs with variable number of profiles 2020-03-27 08:12:53 +02:00
sf.c iwlwifi: mvm: enable SF also when we have HE 2020-03-27 08:12:48 +02:00
sta.c iwlwifi: mvm: limit maximum queue appropriately 2020-04-21 15:39:03 +03:00
sta.h iwlwifi: mvm: replace RS mutex with a spin_lock 2019-07-30 18:34:24 +02:00
tdls.c iwlwifi: mvm: fix TDLS discovery with the new firmware API 2020-02-03 20:09:13 +02:00
testmode.h
time-event.c iwlwifi: mvm: take the required lock when clearing time event data 2020-03-06 15:26:32 +02:00
time-event.h iwlwifi: mvm: fix TDLS discovery with the new firmware API 2020-02-03 20:09:13 +02:00
tt.c iwlwifi: mvm: update the DTS measurement type 2020-02-03 20:09:10 +02:00
tx.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-01-26 10:40:21 +01:00
utils.c iwlwifi: mvm: Invert the condition for OFDM rate 2019-10-25 10:10:24 +03:00