1
0
Fork 0

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

r10conf is already successfully allocated before checking the layout

Signed-off-by: Lidong Zhong <lzhong@suse.com>
Reviewed-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <sh.li@alibaba-inc.com>
hifive-unleashed-5.1
Lidong Zhong 2018-01-23 23:06:12 +08:00 committed by Shaohua Li
parent 53b8d89ddb
commit 43a521238a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}