Skip to contentSkip to conversation

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

PATCH In review Lidong Zhong 2 participants 2 messages Jan 23, 2018 – Jan 24, 2018 MD RAID

lore
Share & tools
lore
#0 lore raw

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

r10conf is already successfully allocated before checking the layout

---
 drivers/md/raid10.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/raid10.c +1 -1
index c131835cf008..c2b2fbeec7b2 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Lidong Zhong

r10conf is already successfully allocated before checking the layout

---
  drivers/md/raid10.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/raid10.c +0 -0
index c131835cf008..c2b2fbeec7b2 100644

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.

Regards,
Guoqing