[SCSI] storvsc: Initialize the sglist
[pandora-kernel.git] / drivers / scsi / storvsc_drv.c
index 0144078..9f4e560 100644 (file)
@@ -467,6 +467,7 @@ static struct scatterlist *create_bounce_buffer(struct scatterlist *sgl,
        if (!bounce_sgl)
                return NULL;
 
+       sg_init_table(bounce_sgl, num_pages);
        for (i = 0; i < num_pages; i++) {
                page_buf = alloc_page(GFP_ATOMIC);
                if (!page_buf)