wifi: iwlwifi: mvm: check link during TX
authorJohannes Berg <johannes.berg@intel.com>
Wed, 14 Jun 2023 09:41:26 +0000 (12:41 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 19 Jun 2023 10:05:25 +0000 (12:05 +0200)
commitdf6791e74fe7baafe3c9ec1eabfd45a5b0b62595
tree7de99d8b5826042b7e8f2ac3207fe24e5a481c87
parent38e721009d302f39ad5c744560a3f96ecbae6bfc
wifi: iwlwifi: mvm: check link during TX

Again, during some (botched) FW restart scenarios we can end
up with a NULL link in the driver but mac80211 thinking all
is still going OK. If we try to TX at the same time, we can
crash there. Fix that by checking for a NULL link during TX.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230614123446.cee48479deec.I4eef58f7b67afafb7b3294adbeb6e0067b68419d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c