diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-12-07 15:15:52 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-08 22:59:47 (GMT) |
commit | 6e8087a4fae41ae1518babbf1ef46f105d702bfd (patch) | |
tree | 0cc4ccf175bebde512a4a0cf14bd116e28ed50b4 /drivers/staging/zram | |
parent | 4219001fc97d9a0fef153ea86ee819482be84c03 (diff) | |
download | linux-fsl-qoriq-6e8087a4fae41ae1518babbf1ef46f105d702bfd.tar.xz |
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>
Diffstat (limited to 'drivers/staging/zram')
0 files changed, 0 insertions, 0 deletions