svn commit: r197307 - head/sys/dev/mwl

Rui Paulo rpaulo at FreeBSD.org
Fri Sep 18 12:25:32 UTC 2009


Author: rpaulo
Date: Fri Sep 18 12:25:31 2009
New Revision: 197307
URL: http://svn.freebsd.org/changeset/base/197307

Log:
  Call mwl_rxdma_cleanup() if there was an error setting up the RX DMA.

Modified:
  head/sys/dev/mwl/if_mwl.c

Modified: head/sys/dev/mwl/if_mwl.c
==============================================================================
--- head/sys/dev/mwl/if_mwl.c	Fri Sep 18 09:03:23 2009	(r197306)
+++ head/sys/dev/mwl/if_mwl.c	Fri Sep 18 12:25:31 2009	(r197307)
@@ -2303,8 +2303,10 @@ mwl_dma_setup(struct mwl_softc *sc)
 	int error, i;
 
 	error = mwl_rxdma_setup(sc);
-	if (error != 0)
+	if (error != 0) {
+		mwl_rxdma_cleanup(sc);
 		return error;
+	}
 
 	for (i = 0; i < MWL_NUM_TX_QUEUES; i++) {
 		error = mwl_txdma_setup(sc, &sc->sc_txq[i]);


More information about the svn-src-head mailing list