svn commit: r273018 - head/sys/dev/alc

Pyun YongHyeon yongari at FreeBSD.org
Mon Oct 13 01:06:40 UTC 2014


Author: yongari
Date: Mon Oct 13 01:06:40 2014
New Revision: 273018
URL: https://svnweb.freebsd.org/changeset/base/273018

Log:
  Remove ALC_LOCK_ASSERT in alc_stop_queue().  This function is now
  called in device attach without holding a driver lock so it
  resulted in panic.
  
  Reported by:	markj

Modified:
  head/sys/dev/alc/if_alc.c

Modified: head/sys/dev/alc/if_alc.c
==============================================================================
--- head/sys/dev/alc/if_alc.c	Mon Oct 13 00:33:59 2014	(r273017)
+++ head/sys/dev/alc/if_alc.c	Mon Oct 13 01:06:40 2014	(r273018)
@@ -4394,8 +4394,6 @@ alc_stop_queue(struct alc_softc *sc)
 	uint32_t reg;
 	int i;
 
-	ALC_LOCK_ASSERT(sc);
-
 	/* Disable RxQ. */
 	reg = CSR_READ_4(sc, ALC_RXQ_CFG);
 	if ((sc->alc_flags & ALC_FLAG_AR816X_FAMILY) == 0) {


More information about the svn-src-all mailing list