ddf: zero space_list in ddf_activate_spare.

Currently ->space_list is uninitialised here, which is obviously bad.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2011-03-14 18:54:21 +11:00
parent de6a92199e
commit f50ae22e45
1 changed files with 1 additions and 0 deletions

View File

@ -3670,6 +3670,7 @@ static struct mdinfo *ddf_activate_spare(struct active_array *a,
mu->buf = malloc(ddf->conf_rec_len * 512);
mu->len = ddf->conf_rec_len * 512;
mu->space = NULL;
mu->space_list = NULL;
mu->next = *updates;
vc = find_vdcr(ddf, a->info.container_member);
memcpy(mu->buf, vc, ddf->conf_rec_len * 512);