]> git.proxmox.com Git - mirror_qemu.git/commit - block/raw-posix.c
block: Assert qiov length matches request length
authorKevin Wolf <kwolf@redhat.com>
Tue, 1 Jul 2014 14:09:54 +0000 (16:09 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 14 Jul 2014 10:03:20 +0000 (12:03 +0200)
commit8eb029c26ecf61da6c2b45c3c23472e8c477ba34
tree33de0b160ce79aac82971c308b748adc96df0d71
parentf06ee3d4aa547df8d7d2317b2b6db7a88c1f3744
block: Assert qiov length matches request length

At least raw-posix relies on this because it can allocate bounce buffers
based on the request length, but access it using all of the qiov entries
later.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block.c
block/raw-posix.c