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)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to