md-cluster: choose correct label when clustered layout is not supported
PATCH 1/1 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 <[email protected]>
--- drivers/md/raid10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/raid10.c +1 -1
@@ -3770,7 +3770,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; } }
Signature · 1 line
2.13.6
Quoted 12 lines · Lidong Zhong
r10conf is already successfully allocated before checking the layout
Signed-off-by Lidong Zhong <[email protected]>--- drivers/md/raid10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/md/raid10.c +0
-0
drivers/md/raid10.c static int raid10_run(struct mddev *mddev) · line 3776
Quoted 8 lines
drivers/md/raid10.c +1
-1@@ -3770,7 +3770,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; } }
Thanks for catch it.
Reviewed-by Guoqing Jiang <[email protected]>
Regards,
Guoqing