iwlwifi: mvm: avoid possible NULL pointer dereference
authorAvraham Stern <avraham.stern@intel.com>
Thu, 8 Oct 2020 15:09:48 +0000 (18:09 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 8 Oct 2020 17:09:39 +0000 (20:09 +0300)
commitbebc14db4eb7120a2c12fb08ee2ea95cdecb8042
tree07751c280e891936c44ee273e27142424cbb0ceb
parent2c2c3647cde4755409aecc57c471d51c24f14c2a
iwlwifi: mvm: avoid possible NULL pointer dereference

When adding a PASN station, the station is added to the list only
if a TK is configured. Otherwise the station pointer should not be
used.

Signed-off-by: Avraham Stern <avraham.stern@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.20201008180656.b8a493c168a7.Ie9a0f9dfd9e9c58c603dd06e45151119467a7804@changeid
drivers/net/wireless/intel/iwlwifi/mvm/ftm-responder.c