From 919c80dfc7a6e9aa68aec195392135153e228253 Mon Sep 17 00:00:00 2001 From: Scott Long Date: Thu, 19 Apr 2007 22:18:15 +0000 Subject: [PATCH] Fix a leaked lock in dashutdown. --- sys/cam/scsi/scsi_da.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index 23930135e4fe..a734e37738d8 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);