diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2013-02-06 05:15:28 -0800 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2013-03-20 15:03:16 +0000 |
commit | 4dd30e2ee429fe6b53ccd2693282bc3faa12c6dc (patch) | |
tree | 3a4a6158cf7ac2419743b67ade6902a1071fc91b | |
parent | 8c5e63a26e6b92c4cb171273beadc02a989f4939 (diff) | |
download | lwn-4dd30e2ee429fe6b53ccd2693282bc3faa12c6dc.tar.gz lwn-4dd30e2ee429fe6b53ccd2693282bc3faa12c6dc.zip |
storvsc: Initialize the sglist
commit 9d2696e658ef4f209955ddaa987d43f1a1bd81a1 upstream.
Properly initialize scatterlist before using it.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
[bwh: Backported to 3.2: adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | drivers/staging/hv/storvsc_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index abc5ac568ab2..8960f1a73546 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c @@ -815,6 +815,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) |