projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7628421
)
SCSI: storvsc: Initialize the sglist
author
K. Y. Srinivasan
<kys@microsoft.com>
Wed, 6 Feb 2013 13:15:28 +0000
(
05:15
-0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 14 Mar 2013 18:29:42 +0000
(11:29 -0700)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/storvsc_drv.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/storvsc_drv.c
b/drivers/scsi/storvsc_drv.c
index
40a4570
..
f9986cc
100644
(file)
--- 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)