summaryrefslogtreecommitdiffstats
path: root/sys/dev/dpt/dpt_scsi.c
diff options
context:
space:
mode:
authorpluknet <pluknet@FreeBSD.org>2012-10-16 09:57:34 +0000
committerpluknet <pluknet@FreeBSD.org>2012-10-16 09:57:34 +0000
commit86c40ddfb934443151016d054ccb33321d4c11c5 (patch)
tree572eab946a234c9def80850605d9056763f0b381 /sys/dev/dpt/dpt_scsi.c
parentb66f8a3fde2dd83159d58938d4750c7bcd860c2d (diff)
downloadFreeBSD-src-86c40ddfb934443151016d054ccb33321d4c11c5.zip
FreeBSD-src-86c40ddfb934443151016d054ccb33321d4c11c5.tar.gz
Fix build of dpt(4).
Diffstat (limited to 'sys/dev/dpt/dpt_scsi.c')
-rw-r--r--sys/dev/dpt/dpt_scsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c
index 6533dd8..b4a73c9 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)
OpenPOWER on IntegriCloud