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:
parent
de6a92199e
commit
f50ae22e45
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue