summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormwilck@arcor.de <mwilck@arcor.de>2013-04-23 20:10:16 +0200
committerNeilBrown <neilb@suse.de>2013-04-24 16:33:46 +1000
commit3f188b10816ca315274b0c79904cd5aa87d800ae (patch)
tree8d3eed27deb02d6538917df3a6e3f66c62aa0849
parenta6592497cdde1fb024a5dee5916d8dc40e4973b6 (diff)
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>
-rw-r--r--super-ddf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super-ddf.c b/super-ddf.c
index 455f0f8d..ea8439b0 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