]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: Fix 32 bit truncation in mark_request_serialising()
authorKevin Wolf <kwolf@redhat.com>
Sat, 8 Feb 2014 09:42:18 +0000 (10:42 +0100)
committerKevin Wolf <kwolf@redhat.com>
Sun, 9 Feb 2014 08:12:39 +0000 (09:12 +0100)
commite96126ffa53d36ec75a1ee900a6b7e7c82d9bb9c
tree44807d0bad265d3af06262d2f68fd27cd0a2382e
parenteaf944a43835399f12808aebd0d0a1db6249ed07
block: Fix 32 bit truncation in mark_request_serialising()

On 32 bit hosts, size_t is too small for align as the bitmask
~(align - 1) will zero out the higher 32 bits of the offset.

While at it, change the local overlap_bytes variable to unsigned to
match the field in BdrvTrackedRequest.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
block.c