diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-10-25 21:41:56 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-10-25 21:41:56 +0000 |
commit | 098e94e4c3f2e18c5ed051d6754efd3526f1d601 (patch) | |
tree | 24b7956eb2a6ae63ae998befc70a2bcd1185e24d /package | |
parent | 1fa1af041c89d4695a81b0594abe486e54827907 (diff) | |
download | upstream-098e94e4c3f2e18c5ed051d6754efd3526f1d601.tar.gz upstream-098e94e4c3f2e18c5ed051d6754efd3526f1d601.tar.bz2 upstream-098e94e4c3f2e18c5ed051d6754efd3526f1d601.zip |
ath9k: fix a stale bf->bf_next pointer, potentially leading to double-free errors and "Failed to stop Tx DMA" errors
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33938 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/mac80211/patches/568-ath9k_fix_stale_pointer.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/package/mac80211/patches/568-ath9k_fix_stale_pointer.patch b/package/mac80211/patches/568-ath9k_fix_stale_pointer.patch new file mode 100644 index 0000000000..95ed6876f1 --- /dev/null +++ b/package/mac80211/patches/568-ath9k_fix_stale_pointer.patch @@ -0,0 +1,18 @@ +--- a/drivers/net/wireless/ath/ath9k/xmit.c ++++ b/drivers/net/wireless/ath/ath9k/xmit.c +@@ -312,6 +312,7 @@ static struct ath_buf *ath_tx_get_buffer + } + + bf = list_first_entry(&sc->tx.txbuf, struct ath_buf, list); ++ bf->bf_next = NULL; + list_del(&bf->list); + + spin_unlock_bh(&sc->tx.txbuflock); +@@ -1774,6 +1775,7 @@ static void ath_tx_send_normal(struct at + list_add_tail(&bf->list, &bf_head); + bf->bf_state.bf_type = 0; + ++ bf->bf_next = NULL; + bf->bf_lastbf = bf; + ath_tx_fill_desc(sc, bf, txq, fi->framelen); + ath_tx_txqaddbuf(sc, txq, &bf_head, false); |