Fix a leaked lock in dashutdown.

This commit is contained in:
Scott Long 2007-04-19 22:18:15 +00:00
parent 7628acd8ee
commit 919c80dfc7

View File

@ -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);