]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
DDF: fix bug in compare_super_ddf
authormwilck@arcor.de <mwilck@arcor.de>
Tue, 23 Apr 2013 18:10:16 +0000 (20:10 +0200)
committerNeilBrown <neilb@suse.de>
Wed, 24 Apr 2013 06:33:46 +0000 (16:33 +1000)
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 <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c

index 455f0f8d62f5556666148693552543b014eee414..ea8439b04eb78808b12f8809a70a2310c292ad18 100644 (file)
@@ -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