svn commit: r226473 - user/adrian/if_ath_tx/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Mon Oct 17 15:25:39 UTC 2011


Author: adrian
Date: Mon Oct 17 15:25:38 2011
New Revision: 226473
URL: http://svn.freebsd.org/changeset/base/226473

Log:
  Enforce that ath_stoprecv() is called with the sc lock held.

Modified:
  user/adrian/if_ath_tx/sys/dev/ath/if_ath.c

Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath.c	Mon Oct 17 14:57:42 2011	(r226472)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath.c	Mon Oct 17 15:25:38 2011	(r226473)
@@ -4961,6 +4961,8 @@ ath_stoprecv(struct ath_softc *sc)
 		((_pa) - (_sc)->sc_rxdma.dd_desc_paddr)))
 	struct ath_hal *ah = sc->sc_ah;
 
+	ATH_LOCK_ASSERT(sc);
+
 	ath_hal_stoppcurecv(ah);	/* disable PCU */
 	ath_hal_setrxfilter(ah, 0);	/* clear recv filter */
 	ath_hal_stopdmarecv(ah);	/* disable DMA engine */


More information about the svn-src-user mailing list