Add a missing unmap; if we're freeing this mbuf then we must

really both sync/unmap the dmamap before freeing it.
This commit is contained in:
Adrian Chadd 2013-04-02 06:21:37 +00:00
parent 0990ef0a61
commit 18303fd833
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=248998

View File

@ -621,6 +621,7 @@ ath_rx_pkt(struct ath_softc *sc, struct ath_rx_status *rs, HAL_STATUS status,
(rs->rs_status & sc->sc_monpass)) {
bus_dmamap_sync(sc->sc_dmat, bf->bf_dmamap,
BUS_DMASYNC_POSTREAD);
bus_dmamap_unload(sc->sc_dmat, bf->bf_dmamap);
/* NB: bpf needs the mbuf length setup */
len = rs->rs_datalen;
m->m_pkthdr.len = m->m_len = len;