Changeset 37013


Ignore:
Timestamp:
2013-06-22T15:59:55+02:00 (5 years ago)
Author:
nbd
Message:

ath9k: fix a minor rcu issue

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

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

    r37007 r37013  
    284284--- a/drivers/net/wireless/ath/ath9k/xmit.c 
    285285+++ b/drivers/net/wireless/ath/ath9k/xmit.c 
    286 @@ -1778,9 +1778,13 @@ static void ath_tx_txqaddbuf(struct ath_ 
     286@@ -1673,6 +1673,8 @@ void ath_txq_schedule(struct ath_softc * 
     287            txq->axq_ampdu_depth >= ATH_AGGR_MIN_QDEPTH) 
     288                return; 
     289  
     290+       rcu_read_lock(); 
     291+ 
     292        ac = list_first_entry(&txq->axq_acq, struct ath_atx_ac, list); 
     293        last_ac = list_entry(txq->axq_acq.prev, struct ath_atx_ac, list); 
     294  
     295@@ -1711,8 +1713,10 @@ void ath_txq_schedule(struct ath_softc * 
     296  
     297                if (ac == last_ac || 
     298                    txq->axq_ampdu_depth >= ATH_AGGR_MIN_QDEPTH) 
     299-                       return; 
     300+                       break; 
     301        } 
     302+ 
     303+       rcu_read_unlock(); 
     304 } 
     305  
     306 /***********/ 
     307@@ -1778,9 +1782,13 @@ static void ath_tx_txqaddbuf(struct ath_ 
    287308        } 
    288309  
Note: See TracChangeset for help on using the changeset viewer.