Patch "wifi: iwlwifi: mvm: fix check in iwl_mvm_sta_fw_id_mask" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    wifi: iwlwifi: mvm: fix check in iwl_mvm_sta_fw_id_mask

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     wifi-iwlwifi-mvm-fix-check-in-iwl_mvm_sta_fw_id_mask.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit fab45e8e057f95dd4d7b23c8ec53fdeea17c53f5
Author: Johannes Berg <johannes.berg@xxxxxxxxx>
Date:   Mon Mar 25 18:08:51 2024 +0100

    wifi: iwlwifi: mvm: fix check in iwl_mvm_sta_fw_id_mask
    
    [ Upstream commit d69aef8084cc72df7b0f2583096d9b037c647ec8 ]
    
    In the previous commit, I renamed the variable to differentiate
    mac80211/mvm link STA, but forgot to adjust the check. The one
    from mac80211 is already non-NULL anyway, but the mvm one can
    be NULL when the mac80211 isn't during link switch conditions.
    Fix the check.
    
    Fixes: 2783ab506eaa ("wifi: iwlwifi: mvm: select STA mask only for active links")
    Reviewed-by: Daniel Gabay <daniel.gabay@xxxxxxxxx>
    Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@xxxxxxxxx>
    Link: https://msgid.link/20240325180850.e95b442bafe9.I8c0119fce7b00cb4f65782930d2c167ed5dd0a6e@changeid
    Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c
index 8f5b8b26909da..121da93e99c6a 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c
@@ -36,7 +36,7 @@ u32 iwl_mvm_sta_fw_id_mask(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
 		mvm_link_sta =
 			rcu_dereference_check(mvmsta->link[link_id],
 					      lockdep_is_held(&mvm->mutex));
-		if (!link_sta)
+		if (!mvm_link_sta)
 			continue;
 
 		result |= BIT(mvm_link_sta->sta_id);




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux