source: branches/backfire/package/mac80211/patches/511-ath9k_completion_buffer_leak.patch @ 22089

Last change on this file since 22089 was 22089, checked in by nbd, 6 years ago

[backfire] backport mac80211 fixes from trunk

File size: 686 bytes
  • drivers/net/wireless/ath/ath9k/xmit.c

    a b static void ath_tx_complete_aggr(struct  
    329329        int isaggr, txfail, txpending, sendbar = 0, needreset = 0, nbad = 0; 
    330330        bool rc_update = true; 
    331331        struct ieee80211_tx_rate rates[4]; 
     332        unsigned long flags; 
    332333 
    333334        skb = bf->bf_mpdu; 
    334335        hdr = (struct ieee80211_hdr *)skb->data; 
    static void ath_tx_complete_aggr(struct  
    344345        sta = ieee80211_find_sta_by_hw(hw, hdr->addr1); 
    345346        if (!sta) { 
    346347                rcu_read_unlock(); 
     348 
     349                spin_lock_irqsave(&sc->tx.txbuflock, flags); 
     350                list_splice_tail_init(bf_q, &sc->tx.txbuf); 
     351                spin_unlock_irqrestore(&sc->tx.txbuflock, flags); 
    347352                return; 
    348353        } 
    349354 
Note: See TracBrowser for help on using the repository browser.