]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: iwlwifi: mvm: protect TXQ list manipulation
authorJohannes Berg <johannes.berg@intel.com>
Fri, 17 Mar 2023 09:53:25 +0000 (10:53 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 22 Mar 2023 12:14:24 +0000 (13:14 +0100)
commit923bf981eb6ecc027227716e30701bdcc1845fbf
tree9f2749f65acb9af288cd889fce60784da25697c2
parentb58e3d4311b54b6dd0e37165277965da0c9eb21d
wifi: iwlwifi: mvm: protect TXQ list manipulation

Some recent upstream debugging uncovered the fact that in
iwlwifi, the TXQ list manipulation is racy.

Introduce a new state bit for when the TXQ is completely
ready and can be used without locking, and if that's not
set yet acquire the lock to check everything correctly.

Reviewed-by: Benjamin Berg <benjamin.berg@intel.com>
Tested-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.c