summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-04-02 06:25:10 +0000
committeradrian <adrian@FreeBSD.org>2013-04-02 06:25:10 +0000
commit0d7093e2ebb8ab652b84870fa383527566d6b707 (patch)
tree52f00975835f987ebaa0db5f017ee5f4c1c46220 /sys/dev/ath
parentf6cd26fd8e5e38303e5cc2b40329a97360c01433 (diff)
downloadFreeBSD-src-0d7093e2ebb8ab652b84870fa383527566d6b707.zip
FreeBSD-src-0d7093e2ebb8ab652b84870fa383527566d6b707.tar.gz
Mark a couple of places where I think the dmamap isn't being unmapped
before the TX path is being aborted. Right now it's in the TDMA code and I can live with that; but it really should get fixed. I'll do a more thorough audit of this code soon.
Diffstat (limited to 'sys/dev/ath')
-rw-r--r--sys/dev/ath/if_ath_tx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath_tx.c b/sys/dev/ath/if_ath_tx.c
index 4d781ef..265e5ff 100644
--- a/sys/dev/ath/if_ath_tx.c
+++ b/sys/dev/ath/if_ath_tx.c
@@ -1615,6 +1615,7 @@ ath_tx_normal_setup(struct ath_softc *sc, struct ieee80211_node *ni,
if_printf(ifp, "bogus frame type 0x%x (%s)\n",
wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK, __func__);
/* XXX statistic */
+ /* XXX free tx dmamap */
ath_freetx(m0);
return EIO;
}
@@ -1670,6 +1671,7 @@ ath_tx_normal_setup(struct ath_softc *sc, struct ieee80211_node *ni,
DPRINTF(sc, ATH_DEBUG_TDMA,
"%s: discard frame, ACK required w/ TDMA\n", __func__);
sc->sc_stats.ast_tdma_ack++;
+ /* XXX free tx dmamap */
ath_freetx(m0);
return EIO;
}
OpenPOWER on IntegriCloud