diff options
author | Miri Korenblit <miriam.rachel.korenblit@intel.com> | 2023-04-13 10:44:03 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-04-13 16:29:59 +0200 |
commit | 413be839bfca9a4f6b32b92807ecdc2c2c182d94 (patch) | |
tree | 88ae77f024b759fd8b1439eccdc5781d4fe61b9f /drivers/net/wireless/intel/iwlwifi/pcie/drv.c | |
parent | wifi: iwlwifi: nvm-parse: enable 160/320 MHz for AP mode (diff) | |
download | linux-413be839bfca9a4f6b32b92807ecdc2c2c182d94.tar.gz linux-413be839bfca9a4f6b32b92807ecdc2c2c182d94.tar.bz2 linux-413be839bfca9a4f6b32b92807ecdc2c2c182d94.zip |
wifi: iwlwifi: add a validity check of queue_id in iwl_txq_reclaim
This function receives the queue id to reclaim packets from. Currently
we're passing to it the queue id we received from the FW in the flush
response. We don't do any check of this value and it might be invalid.
In such case we will refer to a pointer to a queue which might be NULL.
Fix this by adding a validity check of the queue id before using it.
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230413102635.a9c3fd32bce7.I5fbdcf3b1b80eb96a907116c166f19dc0aae7cb8@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/pcie/drv.c')
0 files changed, 0 insertions, 0 deletions