wifi: iwlwifi: mvm: guard against invalid STA ID on removal
authorBenjamin Berg <benjamin.berg@intel.com>
Wed, 20 Mar 2024 21:26:23 +0000 (23:26 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Mar 2024 14:23:07 +0000 (15:23 +0100)
commit17f64517bf5c26af56b6c3566273aad6646c3c4f
treecfeff827af4ab67ba2289493db967da11a84cefd
parentc2ace6300600c634553657785dfe5ea0ed688ac2
wifi: iwlwifi: mvm: guard against invalid STA ID on removal

Guard against invalid station IDs in iwl_mvm_mld_rm_sta_id as that would
result in out-of-bounds array accesses. This prevents issues should the
driver get into a bad state during error handling.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240320232419.d523167bda9c.I1cffd86363805bf86a95d8bdfd4b438bb54baddc@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c