diff options
author | Lidong Zhong <lzhong@suse.com> | 2018-01-23 16:06:12 +0100 |
---|---|---|
committer | Shaohua Li <sh.li@alibaba-inc.com> | 2018-02-25 19:36:55 +0100 |
commit | 43a521238aca0e24d50add1db125a61bda2a3527 (patch) | |
tree | 610a5ca4bd0b2a3ac4a22d7a2fb0935db5e140a0 /drivers/md/raid10.c | |
parent | md: raid5: avoid string overflow warning (diff) | |
download | linux-43a521238aca0e24d50add1db125a61bda2a3527.tar.xz linux-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/raid10.c')
-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; } } |