vhost: fix length for cross region descriptor
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 26 Nov 2012 05:57:27 +0000 (05:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Mar 2013 22:09:05 +0000 (06:09 +0800)
commit603b86549a4d6928d1059b19df2dfc5d61070533
tree5625bc309beed5f00ffd91685eff22ea1364f693
parent4bf6d0956ad678f3ef59362cb41dae05a2259f78
vhost: fix length for cross region descriptor

commit bd97120fc3d1a11f3124c7c9ba1d91f51829eb85 upstream.

If a single descriptor crosses a region, the
second chunk length should be decremented
by size translated so far, instead it includes
the full descriptor length.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vhost/vhost.c