diff options
author | scottl <scottl@FreeBSD.org> | 2007-04-19 22:18:15 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2007-04-19 22:18:15 +0000 |
commit | 6614b78b713a4897d45c5cfec8a78a6435bf5544 (patch) | |
tree | 913efe2f68e53064f86167794a253a2a2d34fe56 /sys/cam | |
parent | e9f070109092a370a4f53d9be3ad7b67e9b86cff (diff) | |
download | FreeBSD-src-6614b78b713a4897d45c5cfec8a78a6435bf5544.zip FreeBSD-src-6614b78b713a4897d45c5cfec8a78a6435bf5544.tar.gz |
Fix a leaked lock in dashutdown.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_da.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index 2393013..a734e37 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -1991,8 +1991,10 @@ dashutdown(void * arg, int howto) * if the drive is capable of it.. */ if (((softc->flags & DA_FLAG_OPEN) == 0) - || (softc->quirks & DA_Q_NO_SYNC_CACHE)) + || (softc->quirks & DA_Q_NO_SYNC_CACHE)) { + cam_periph_unlock(periph); continue; + } xpt_setup_ccb(&ccb.ccb_h, periph->path, /*priority*/1); |