From cf82f20057b19a26ba81f5f364aaba1732b5e003 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Fri, 14 Jul 2006 13:55:56 +0000 Subject: [PATCH] Unlock aac_io_lock before returning, thus eliminates a mutex leak. Submitted by: Beyond Luo PR: kern/100046 Reviewed by: scottl --- sys/dev/aac/aac_cam.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/aac/aac_cam.c b/sys/dev/aac/aac_cam.c index aaca0d10cf4f..8d2fc9b38dbc 100644 --- a/sys/dev/aac/aac_cam.c +++ b/sys/dev/aac/aac_cam.c @@ -414,6 +414,7 @@ aac_cam_action(struct cam_sim *sim, union ccb *ccb) } else { ccb->ccb_h.status = CAM_REQ_CMP; xpt_done(ccb); + mtx_unlock(&sc->aac_io_lock); return; } default: