From: K. Y. Srinivasan Date: Wed, 7 Dec 2011 15:15:52 +0000 (-0800) Subject: Staging: hv: storvsc: Fix a bug in create_bounce_buffer() X-Git-Tag: v3.3-rc1~152^2~101^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e8087a4fae41ae1518babbf1ef46f105d702bfd;p=pandora-kernel.git 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 Signed-off-by: Haiyang Zhang Reported-by: Dadok Milan Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed