diff options
author | NeilBrown <neilb@suse.de> | 2011-03-14 18:54:21 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-03-14 18:54:21 +1100 |
commit | f50ae22e45848217d989f58ece290c1e8cc6acc0 (patch) | |
tree | 454afa0f8c35a79c2289f4b2c0dfaaf722e28d12 | |
parent | de6a92199e12db17c760ace2735d691c973f33b1 (diff) | |
download | mdadm-f50ae22e45848217d989f58ece290c1e8cc6acc0.tar.gz |
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>
-rw-r--r-- | super-ddf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/super-ddf.c b/super-ddf.c index 8c54568..bb8be50 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -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); |