svn commit: r248998 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Tue Apr 2 06:21:38 UTC 2013


Author: adrian
Date: Tue Apr  2 06:21:37 2013
New Revision: 248998
URL: http://svnweb.freebsd.org/changeset/base/248998

Log:
  Add a missing unmap; if we're freeing this mbuf then we must
  really both sync/unmap the dmamap before freeing it.

Modified:
  head/sys/dev/ath/if_ath_rx.c

Modified: head/sys/dev/ath/if_ath_rx.c
==============================================================================
--- head/sys/dev/ath/if_ath_rx.c	Tue Apr  2 05:57:36 2013	(r248997)
+++ head/sys/dev/ath/if_ath_rx.c	Tue Apr  2 06:21:37 2013	(r248998)
@@ -621,6 +621,7 @@ rx_error:
 		    (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;


More information about the svn-src-head mailing list