From: Mikulas Patocka <[email-masked]>

Explicitly initialize bio lists instead of relying on kzalloc.

Signed-off-by: Mikulas Patocka <[email-masked]>
Reviewed-by: Takahiro Yasui <[email-masked]>
Tested-by: Takahiro Yasui <[email-masked]>
Signed-off-by: Alasdair G Kergon <[email-masked]>

---
 drivers/md/dm-raid1.c |    4 ++++
 1 file changed, 4 insertions(+)

Index: linux-2.6.32/drivers/md/dm-raid1.c
===================================================================
--- linux-2.6.32.orig/drivers/md/dm-raid1.c
+++ linux-2.6.32/drivers/md/dm-raid1.c
@@ -849,6 +849,10 @@ static struct mirror_set *alloc_context(
 	}
 
 	spin_lock_init(&ms->lock);
+	bio_list_init(&ms->reads);
+	bio_list_init(&ms->writes);
+	bio_list_init(&ms->failures);
+	bio_list_init(&ms->holds);
 
 	ms->ti = ti;
 	ms->nr_mirrors = nr_mirrors;