svn commit: r294819 - vendor-sys/illumos/dist/uts/common/fs/zfs
Alexander Motin
mav at FreeBSD.org
Tue Jan 26 13:44:48 UTC 2016
Author: mav
Date: Tue Jan 26 13:44:47 2016
New Revision: 294819
URL: https://svnweb.freebsd.org/changeset/base/294819
Log:
6495 Fix mutex leak in dmu_objset_find_dp
Reviewed by: George Wilson <george.wilson at delphix.com>
Reviewed by: Matthew Ahrens <mahrens at delphix.com>
Approved by: Albert Lee <trisk at omniti.com>
Author: Steven Hartland <steven.hartland at multiplay.co.uk>
illumos/illumos-gate at 2bad22584defe4667f99737e3158d336e4dcca11
Modified:
vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_objset.c
Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_objset.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_objset.c Tue Jan 26 13:40:22 2016 (r294818)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/dmu_objset.c Tue Jan 26 13:44:47 2016 (r294819)
@@ -1789,6 +1789,7 @@ dmu_objset_find_dp(dsl_pool_t *dp, uint6
* thread suffices. For now, stay single threaded.
*/
dmu_objset_find_dp_impl(dcp);
+ mutex_destroy(&err_lock);
return (error);
}
@@ -1800,6 +1801,8 @@ dmu_objset_find_dp(dsl_pool_t *dp, uint6
INT_MAX, 0);
if (tq == NULL) {
kmem_free(dcp, sizeof (*dcp));
+ mutex_destroy(&err_lock);
+
return (SET_ERROR(ENOMEM));
}
dcp->dc_tq = tq;
More information about the svn-src-vendor
mailing list