diff options
author | Matthew Ahrens <[email protected]> | 2020-12-24 20:51:13 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-01-05 10:31:53 -0800 |
commit | 6410ee4a94858669f735a1a6562f36f0d82505ec (patch) | |
tree | a141ed1d0b9503b3b623442d4a9ec62ddcd3c1ac /cmd | |
parent | a296875da080a93aa1aef7cea0aace4f6e867cab (diff) |
Memory leak in ztest_vdev_attach_detach()
Reviewed-by: Igor Kozhukhov <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matthew Ahrens <[email protected]>
Closes #11396
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/ztest/ztest.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index 4e1be4dd7..3b69e9f2b 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -3365,8 +3365,7 @@ ztest_vdev_attach_detach(ztest_ds_t *zd, uint64_t id) */ if (ztest_device_removal_active) { spa_config_exit(spa, SCL_ALL, FTAG); - mutex_exit(&ztest_vdev_lock); - return; + goto out; } /* |