summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_target.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_target.c b/sys/cam/scsi/scsi_target.c
index fa00173..4f9187a 100644
--- a/sys/cam/scsi/scsi_target.c
+++ b/sys/cam/scsi/scsi_target.c
@@ -809,6 +809,7 @@ targdone(struct cam_periph *periph, union ccb *done_ccb)
/* If we're no longer enabled, throw away CCB */
if ((softc->state & TARG_STATE_LUN_ENABLED) == 0) {
targfreeccb(softc, done_ccb);
+ TARG_UNLOCK(softc);
return;
}
/* abort_all_pending() waits for pending queue to be empty */
OpenPOWER on IntegriCloud