diff options
author | mav <mav@FreeBSD.org> | 2010-10-25 07:41:21 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2010-10-25 07:41:21 +0000 |
commit | 00e9a82e783baffc8d3c982f7f3aa0408cf2adfb (patch) | |
tree | 4a1a2357169e3fba1a46877a19582ac4afa31095 /sys/dev/ahci | |
parent | dbb2753aa135518648eff9cace2f52200ab027e8 (diff) | |
download | FreeBSD-src-00e9a82e783baffc8d3c982f7f3aa0408cf2adfb.zip FreeBSD-src-00e9a82e783baffc8d3c982f7f3aa0408cf2adfb.tar.gz |
Add missing mtx_destroy() on channel attach failure.
Diffstat (limited to 'sys/dev/ahci')
-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 d6357b2..314bd91 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); } |