From: K. Y. Srinivasan Date: Wed, 6 Feb 2013 13:15:28 +0000 (-0800) Subject: [SCSI] storvsc: Initialize the sglist X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9d2696e658ef4f209955ddaa987d43f1a1bd81a1;p=linux-beck.git [SCSI] storvsc: Initialize the sglist Properly initialize scatterlist before using it. Signed-off-by: K. Y. Srinivasan Cc: stable@vger.kernel.org Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 01440782feb2..9f4e5601b610 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scsi/storvsc_drv.c @@ -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)