diff options
| author | Eric Blake <eblake@redhat.com> | 2016-06-23 16:37:07 -0600 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2016-07-05 16:46:24 +0200 |
| commit | 82524274eada16bfa2a263cbdbcae0fe948ed040 (patch) | |
| tree | 924adc077bf00ed689f393b983d5fba83e5e9498 /hw/scsi/scsi-generic.c | |
| parent | a604fa2ba55f645abbb082469ed595f58f657ac8 (diff) | |
| download | focaccia-qemu-82524274eada16bfa2a263cbdbcae0fe948ed040.tar.gz focaccia-qemu-82524274eada16bfa2a263cbdbcae0fe948ed040.zip | |
block: Fix harmless off-by-one in bdrv_aligned_preadv()
If the amount of data to read ends exactly on the total size of the bs, then we were wasting time creating a local qiov to read the data in preparation for what would normally be appending zeroes beyond the end, even though this corner case has nothing further to do. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/scsi/scsi-generic.c')
0 files changed, 0 insertions, 0 deletions