Kevin Wolf 58f423fbd5 dma-helpers: Fix too long qiov
If the size of the scatter/gather list isn't a multiple of 512, the
number of sectors for the block layer request is rounded down, resulting
in a qiov that doesn't match the request length. Truncate the qiov to the
new length of the request.

This fixes the IDE qtest case /x86_64/ide/bmdma/short_prdt.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2014-07-14 12:03:21 +02:00
..
2014-06-16 13:24:33 +02:00
2014-01-13 14:04:53 +01:00
2014-05-08 14:19:58 -04:00
2014-07-14 12:03:21 +02:00
2014-04-28 08:55:32 +04:00
2014-03-13 14:42:21 +01:00
2013-04-13 19:39:59 +00:00