mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[SCSI] storvsc: Initialize the sglist
Properly initialize scatterlist before using it. Signed-off-by: K. Y. Srinivasan <[email protected]> Cc: [email protected] Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
7887ea7f94
commit
9d2696e658
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue