svn commit: r241605 - head/sys/dev/dpt

Sergey Kandaurov pluknet at FreeBSD.org
Tue Oct 16 09:57:35 UTC 2012


Author: pluknet
Date: Tue Oct 16 09:57:34 2012
New Revision: 241605
URL: http://svn.freebsd.org/changeset/base/241605

Log:
  Fix build of dpt(4).

Modified:
  head/sys/dev/dpt/dpt_scsi.c

Modified: head/sys/dev/dpt/dpt_scsi.c
==============================================================================
--- head/sys/dev/dpt/dpt_scsi.c	Tue Oct 16 09:55:31 2012	(r241604)
+++ head/sys/dev/dpt/dpt_scsi.c	Tue Oct 16 09:57:34 2012	(r241605)
@@ -720,11 +720,11 @@ dptexecuteccb(void *arg, bus_dma_segment
 	union	 ccb *ccb;
 	struct	 dpt_softc *dpt;
 
-	if (!dumping)
-		mtx_assert(&dpt->lock, MA_OWNED);
 	dccb = (struct dpt_ccb *)arg;
 	ccb = dccb->ccb;
 	dpt = (struct dpt_softc *)ccb->ccb_h.ccb_dpt_ptr;
+	if (!dumping)
+		mtx_assert(&dpt->lock, MA_OWNED);
 
 	if (error != 0) {
 		if (error != EFBIG)


More information about the svn-src-all mailing list