From e46e3354a4d8b47d0647b9c5d41edd9f0b30dcc6 Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Tue, 16 Oct 2012 09:57:34 +0000 Subject: [PATCH] Fix build of dpt(4). --- sys/dev/dpt/dpt_scsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c index 6533dd82e33..b4a73c937c9 100644 --- a/sys/dev/dpt/dpt_scsi.c +++ b/sys/dev/dpt/dpt_scsi.c @@ -720,11 +720,11 @@ dptexecuteccb(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) 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)