The 'continue' statements need to be under spinlock, since
the spinlock needs to be held as a loop invariant.
Fixes: 0762bdd30279 ("wifi: mt76: mt7996: rework mt7996_mac_sta_rc_work to support MLO")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
 
                changed = msta_link->changed;
                msta_link->changed = 0;
-               spin_unlock_bh(&dev->mt76.sta_poll_lock);
 
                sta = wcid_to_sta(&msta_link->wcid);
                link_id = msta_link->wcid.link_id;
                if (!link_conf)
                        continue;
 
+               spin_unlock_bh(&dev->mt76.sta_poll_lock);
+
                link = (struct mt7996_vif_link *)mlink;
 
                if (changed & (IEEE80211_RC_SUPP_RATES_CHANGED |