linux-sg2042/drivers/staging/hv
K. Y. Srinivasan 6e8087a4fa Staging: hv: storvsc: Fix a bug in create_bounce_buffer()
Set the length field of the scatter gather elements correctly when we create
the bounce buffer. When we use the bounce buffer for a "write" operation,
the act of copying to the bounce buffer, correctly deals with this issue.
However, on the "read" side, the current code was not correctly setting
the buffer length. Fix this bug. Note that when we copy from the bounce
buffer (for the read case), the amount we copy is controlled by the original
scatter gather list given to the driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reported-by: Dadok Milan <dadok@kvados.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-12-08 14:59:47 -08:00
..
Kconfig Staging: hv: remove hv_mouse driver as it's now in the hid directory 2011-12-01 10:37:09 -08:00
Makefile Staging: hv: remove hv_mouse driver as it's now in the hid directory 2011-12-01 10:37:09 -08:00
TODO Staging: hv: update TODO file 2011-12-01 10:38:42 -08:00
storvsc_drv.c Staging: hv: storvsc: Fix a bug in create_bounce_buffer() 2011-12-08 14:59:47 -08:00