summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2006-07-14 13:55:56 +0000
committerdelphij <delphij@FreeBSD.org>2006-07-14 13:55:56 +0000
commitb95e8729b4f663414ed1cb8d4526574c845ce192 (patch)
tree793d85fa26dcd7a2fca8ecdd28098e0f98d99f0e /sys/dev/aac
parent2b9f045c18f77bf3c5cd8aed67c27361a096e42f (diff)
downloadFreeBSD-src-b95e8729b4f663414ed1cb8d4526574c845ce192.zip
FreeBSD-src-b95e8729b4f663414ed1cb8d4526574c845ce192.tar.gz
Unlock aac_io_lock before returning, thus eliminates a mutex
leak. Submitted by: Beyond Luo <fedora ercist iscas ac cn> PR: kern/100046 Reviewed by: scottl
Diffstat (limited to 'sys/dev/aac')
-rw-r--r--sys/dev/aac/aac_cam.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/aac/aac_cam.c b/sys/dev/aac/aac_cam.c
index aaca0d1..8d2fc9b 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:
OpenPOWER on IntegriCloud