Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2011 15:25:38 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r226473 - user/adrian/if_ath_tx/sys/dev/ath
Message-ID:  <201110171525.p9HFPcqB029189@svn.freebsd.org>

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



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