ath9k: fix a crash bug and a dma sync issue
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 560-ath9k_tx_buf_return_cleanup.patch
index ff5591253cc282ff433f47902fbbe2825991119b..622b5772092145207fb96c4468f2909946410dd4 100644 (file)
  
                return r;
        }
-@@ -2123,11 +2121,8 @@ static void ath_tx_processq(struct ath_s
+@@ -2121,13 +2119,12 @@ static void ath_tx_processq(struct ath_s
+               txq->axq_depth--;
+               txok = !(ts.ts_status & ATH9K_TXERR_MASK);
                txq->axq_tx_inprogress = false;
++              if (bf_held)
++                      list_del(&bf_held->list);
                spin_unlock_bh(&txq->axq_lock);
  
 -              if (bf_held) {