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 <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
mwilck@arcor.de 2013-04-23 20:10:16 +02:00 committed by NeilBrown
parent a6592497cd
commit 3f188b1081
1 changed files with 1 additions and 1 deletions

View 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