wifi: iwlwifi: mvm: fix NULL deref in iwl_mvm_mld_disable_txq
authorGregory Greenman <gregory.greenman@intel.com>
Thu, 23 Mar 2023 22:35:43 +0000 (00:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 24 Mar 2023 09:53:48 +0000 (10:53 +0100)
commitd24b2130146b31d2185296dbc08186fb67bb2c71
tree7bd2aa9891d6332ef34b6cd44058dfdb6a67a4e7
parent0dd45ebc08de2449efe1a0908147796856a5f824
wifi: iwlwifi: mvm: fix NULL deref in iwl_mvm_mld_disable_txq

Check sta pointer for NULL and don't crash if it is.

Fixes: 006c152ac9e5 ("wifi: iwlwifi: mvm: add support for the new STA related commands")
Reported-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/linux-wireless/20230314194113.132873ce015c.I7b12a77e5be066730762e6ceeeaa7190293c3df1@changeid/
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c