diff options
author | Alexander Motin <mav@FreeBSD.org> | 2010-10-25 07:41:21 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2010-10-25 07:41:21 +0000 |
commit | 5b9392e840d9dcfc112c8c2ea125efb9bfb01ef4 (patch) | |
tree | 4a1a2357169e3fba1a46877a19582ac4afa31095 /sys/dev/ahci/ahci.c | |
parent | 130a0815631130700a1a02ab7298254dc881e864 (diff) | |
download | src-5b9392e840d9dcfc112c8c2ea125efb9bfb01ef4.tar.gz src-5b9392e840d9dcfc112c8c2ea125efb9bfb01ef4.zip |
Add missing mtx_destroy() on channel attach failure.
Notes
Notes:
svn path=/head/; revision=214325
Diffstat (limited to 'sys/dev/ahci/ahci.c')
-rw-r--r-- | sys/dev/ahci/ahci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ahci/ahci.c b/sys/dev/ahci/ahci.c index d6357b2edcb0..314bd91d1198 100644 --- a/sys/dev/ahci/ahci.c +++ b/sys/dev/ahci/ahci.c @@ -969,6 +969,7 @@ err1: err0: bus_release_resource(dev, SYS_RES_MEMORY, ch->unit, ch->r_mem); mtx_unlock(&ch->mtx); + mtx_destroy(&ch->mtx); return (error); } |