diff options
-rw-r--r-- | sys/dev/dpt/dpt_scsi.c | 4 |
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) |