From f50ae22e45848217d989f58ece290c1e8cc6acc0 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 14 Mar 2011 18:54:21 +1100 Subject: [PATCH] ddf: zero space_list in ddf_activate_spare. Currently ->space_list is uninitialised here, which is obviously bad. Signed-off-by: NeilBrown --- super-ddf.c | 1 + 1 file changed, 1 insertion(+) 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);