Changeset 30388


Ignore:
Timestamp:
2012-02-08T19:43:21+01:00 (6 years ago)
Author:
nbd
Message:

mac80211: fix a potential rate control related crash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/patches/300-pending_work.patch

    r30346 r30388  
    254254        WLAN_STA_MFP, 
    255255        WLAN_STA_BLOCK_BA, 
     256--- a/net/mac80211/rate.h 
     257+++ b/net/mac80211/rate.h 
     258@@ -37,7 +37,7 @@ static inline void rate_control_tx_statu 
     259        struct ieee80211_sta *ista = &sta->sta; 
     260        void *priv_sta = sta->rate_ctrl_priv; 
     261  
     262-       if (!ref) 
     263+       if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) 
     264                return; 
     265  
     266        ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); 
Note: See TracChangeset for help on using the changeset viewer.