Unverified Commit 9441eee4 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10152 wifi: mac80211: Fix deadlock in ieee80211_sta_ps_deliver_wakeup()

parents 5660a280 326b8906
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1262,7 +1262,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;
@@ -1291,7 +1291,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);