Unverified Commit 2e754c9d authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10156 v2 wifi: mac80211: Fix deadlock in ieee80211_sta_ps_deliver_wakeup()

parents 56831ef9 a1ddf524
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1343,7 +1343,7 @@ void ieee80211_sta_ps_deliver_wakeup(struct sta_info *sta)
	skb_queue_head_init(&pending);

	/* sync with ieee80211_tx_h_unicast_ps_buf */
	spin_lock(&sta->ps_lock);
	spin_lock_bh(&sta->ps_lock);
	/* Send all buffered frames to the station */
	for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) {
		int count = skb_queue_len(&pending), tmp;
@@ -1372,7 +1372,7 @@ void ieee80211_sta_ps_deliver_wakeup(struct sta_info *sta)
	 */
	clear_sta_flag(sta, WLAN_STA_PSPOLL);
	clear_sta_flag(sta, WLAN_STA_UAPSD);
	spin_unlock(&sta->ps_lock);
	spin_unlock_bh(&sta->ps_lock);

	atomic_dec(&ps->num_sta_ps);