stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] Drivers: scsi: storvsc: Initialize the sglist
@ 2013-01-25  1:04 K. Y. Srinivasan
  2013-01-25  6:29 ` Wanlong Gao
  0 siblings, 1 reply; 3+ messages in thread
From: K. Y. Srinivasan @ 2013-01-25  1:04 UTC (permalink / raw)
  To: gregkh, linux-kernel, devel, ohering, jbottomley, jasowang,
	linux-scsi
  Cc: K. Y. Srinivasan, Stable

Properly initialize scatterlist before using it.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: Stable <stable@vger.kernel.org>
---
 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 270b3cf..5ada1d0 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)
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] Drivers: scsi: storvsc: Initialize the sglist
  2013-01-25  1:04 K. Y. Srinivasan
@ 2013-01-25  6:29 ` Wanlong Gao
  0 siblings, 0 replies; 3+ messages in thread
From: Wanlong Gao @ 2013-01-25  6:29 UTC (permalink / raw)
  To: K. Y. Srinivasan
  Cc: gregkh, linux-kernel, devel, ohering, jbottomley, jasowang,
	linux-scsi, Stable, Wanlong Gao

On 01/25/2013 09:04 AM, K. Y. Srinivasan wrote:
> Properly initialize scatterlist before using it.
> 
> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> Cc: Stable <stable@vger.kernel.org>

Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

> ---
>  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 270b3cf..5ada1d0 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)
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] Drivers: scsi: storvsc: Initialize the sglist
@ 2013-01-26  2:19 K. Y. Srinivasan
  0 siblings, 0 replies; 3+ messages in thread
From: K. Y. Srinivasan @ 2013-01-26  2:19 UTC (permalink / raw)
  To: gregkh, linux-kernel, devel, ohering, jbottomley, jasowang,
	linux-scsi
  Cc: K. Y. Srinivasan, stable

Properly initialize scatterlist before using it.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: stable@vger.kernel.org
---
 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 270b3cf..5ada1d0 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)
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-26  2:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-26  2:19 [PATCH 1/1] Drivers: scsi: storvsc: Initialize the sglist K. Y. Srinivasan
  -- strict thread matches above, loose matches on Subject: below --
2013-01-25  1:04 K. Y. Srinivasan
2013-01-25  6:29 ` Wanlong Gao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).