Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2013 06:21:37 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r248998 - head/sys/dev/ath
Message-ID:  <201304020621.r326Lbxx077047@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304020621.r326Lbxx077047>