wifi: iwlwifi: mvm: add a NULL pointer check
authorJohannes Berg <johannes.berg@intel.com>
Wed, 14 Jun 2023 09:41:25 +0000 (12:41 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 19 Jun 2023 10:05:25 +0000 (12:05 +0200)
commit38e721009d302f39ad5c744560a3f96ecbae6bfc
tree9816539a882cf71c15e85f52374a5e5dfe6ffe60
parentc53c339d9a337732193c3b783f7bd80539fea259
wifi: iwlwifi: mvm: add a NULL pointer check

We've observed that in some botched firmware restart scenarios
when the firmware crashes again while we're reconfiguring, we
can hit NULL pointer crashes here. The underlying issue is the
botched restart which we need to fix separately, but until we
can do that, don't crash hard here.

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.e47b0192c78f.I67fa9f07cd1c8b3bdc8db25f5e31c1c680c49745@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c
drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c