提交 43a52123 编写于 作者: L Lidong Zhong 提交者: 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: NLidong Zhong <lzhong@suse.com>
Reviewed-by: NGuoqing Jiang <gqjiang@suse.com>
Signed-off-by: NShaohua Li <sh.li@alibaba-inc.com>
上级 53b8d89d
...@@ -3784,7 +3784,7 @@ static int raid10_run(struct mddev *mddev) ...@@ -3784,7 +3784,7 @@ static int raid10_run(struct mddev *mddev)
if (fc > 1 || fo > 0) { if (fc > 1 || fo > 0) {
pr_err("only near layout is supported by clustered" pr_err("only near layout is supported by clustered"
" raid10\n"); " raid10\n");
goto out; goto out_free_conf;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册