From 3f188b10816ca315274b0c79904cd5aa87d800ae Mon Sep 17 00:00:00 2001 From: "mwilck@arcor.de" Date: Tue, 23 Apr 2013 20:10:16 +0200 Subject: [PATCH] DDF: fix bug in compare_super_ddf Fix bug in previous patch "DDF: compare_super_ddf: merge local info of other superblock" Just discovered this bug in my last patch set - unfortunately, just after you committed it. Signed-off-by: Martin Wilck Signed-off-by: NeilBrown --- super-ddf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/super-ddf.c b/super-ddf.c index 455f0f8..ea8439b 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -3514,7 +3514,7 @@ static int compare_super_ddf(struct supertype *st, struct supertype *tst) vl1->next = first->conflist; vl1->block_sizes = NULL; - if (vl1->conf.sec_elmnt_count > 1) { + if (vl2->conf.sec_elmnt_count > 1) { vl1->other_bvds = xcalloc(vl2->conf.sec_elmnt_count - 1, sizeof(struct vd_config *)); } else