Drivers: scsi: storvsc: Initialize the sglist
Subsystems (3)
PATCH 1/1 Drivers: scsi: storvsc: Initialize the sglist
Properly initialize scatterlist before using it.
Signed-off-by K. Y. Srinivasan <[email protected]>
Cc Stable <[email protected]>
--- drivers/scsi/storvsc_drv.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/scsi/storvsc_drv.c +1 -0
@@ -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)
Signature · 1 line
1.7.4.1
Quoted 4 lines · K. Y. Srinivasan
Properly initialize scatterlist before using it.
Signed-off-by K. Y. Srinivasan <[email protected]>Cc Stable <[email protected]>
Reviewed-by Wanlong Gao <[email protected]>
Quoted 17 lines
--- drivers/scsi/storvsc_drv.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/scsi/storvsc_drv.c +1
-0@@ -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)