diff options
author | Matthew Ahrens <[email protected]> | 2020-12-24 20:51:13 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-12-28 10:05:32 -0800 |
commit | a0316ad26851d4b07d5048d5b2034137659babf5 (patch) | |
tree | 09880ff325dca01f8cd17f65efda95cc55120ad4 /cmd | |
parent | b6722b871b141b29adb5ae46455b7d96620fa993 (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 21a7d4ad5..b59f7dfc8 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -3490,8 +3490,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; } /* |