Commit 43a52123 authored by Lidong Zhong's avatar Lidong Zhong Committed by Shaohua Li

md-cluster: choose correct label when clustered layout is not supported

r10conf is already successfully allocated before checking the layout
Signed-off-by: default avatarLidong Zhong <lzhong@suse.com>
Reviewed-by: default avatarGuoqing Jiang <gqjiang@suse.com>
Signed-off-by: default avatarShaohua Li <sh.li@alibaba-inc.com>
parent 53b8d89d
......@@ -3784,7 +3784,7 @@ static int raid10_run(struct mddev *mddev)
if (fc > 1 || fo > 0) {
pr_err("only near layout is supported by clustered"
" raid10\n");
goto out;
goto out_free_conf;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment