From: Lidong Zhong Date: Tue, 23 Jan 2018 15:06:12 +0000 (+0800) Subject: md-cluster: choose correct label when clustered layout is not supported X-Git-Tag: v4.16-rc4~22^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43a521238aca0e24d50add1db125a61bda2a3527;p=thirdparty%2Flinux.git 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 Reviewed-by: Guoqing Jiang Signed-off-by: Shaohua Li --- diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 9e9441fde8b39..93fa947fef22c 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -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; } }