diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2013-02-06 05:15:28 -0800 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-02-24 09:24:26 +0000 |
commit | 9d2696e658ef4f209955ddaa987d43f1a1bd81a1 (patch) | |
tree | 2fecb5030c0e3e8d79eb04a48fd60b432205bc52 /drivers/scsi | |
parent | 7887ea7f942770c2146dbcdfa2a85aa8de93df31 (diff) | |
download | op-kernel-dev-9d2696e658ef4f209955ddaa987d43f1a1bd81a1.zip op-kernel-dev-9d2696e658ef4f209955ddaa987d43f1a1bd81a1.tar.gz |
[SCSI] storvsc: Initialize the sglist
Properly initialize scatterlist before using it.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/storvsc_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 0144078..9f4e560 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) |