diff options
author | Lidong Zhong <lzhong@suse.com> | 2018-01-23 23:06:12 +0800 |
---|---|---|
committer | Shaohua Li <sh.li@alibaba-inc.com> | 2018-02-25 10:36:55 -0800 |
commit | 43a521238aca0e24d50add1db125a61bda2a3527 (patch) | |
tree | 610a5ca4bd0b2a3ac4a22d7a2fb0935db5e140a0 /drivers/md | |
parent | 53b8d89ddbdbb0e4625a46d2cdbb6f106c52f801 (diff) | |
download | linux-stable-43a521238aca0e24d50add1db125a61bda2a3527.tar.gz linux-stable-43a521238aca0e24d50add1db125a61bda2a3527.tar.bz2 linux-stable-43a521238aca0e24d50add1db125a61bda2a3527.zip |
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>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/raid10.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 9e9441fde8b3..93fa947fef22 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; } } |