diff options
author | njl <njl@FreeBSD.org> | 2003-09-04 16:05:41 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2003-09-04 16:05:41 +0000 |
commit | c54c55a75cfcc2fdea6cd7efcc88e89cae29f87b (patch) | |
tree | f89a0d68a2cb27f3a6fa686c99a748b15e023e8d /sys/cam | |
parent | c8c49c9053cf93bca10de6b9c511e6405c9e181b (diff) | |
download | FreeBSD-src-c54c55a75cfcc2fdea6cd7efcc88e89cae29f87b.zip FreeBSD-src-c54c55a75cfcc2fdea6cd7efcc88e89cae29f87b.tar.gz |
Upon receiving a CCB for a LUN that is not enabled, be sure to unlock the
softc on exit.
Submitted by: simokawa
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_target.c | 1 |
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 */ |