diff options
author | Fam Zheng | 2014-06-11 06:11:50 +0200 |
---|---|---|
committer | Kevin Wolf | 2014-06-27 18:18:31 +0200 |
commit | ee17e84830e2e7030d57db5b415719e9022573cd (patch) | |
tree | f24f67489f917b1376d0b13f548c7fc3fd40b949 /linux-user/errno_defs.h | |
parent | virtio-blk: Fill in VirtIOBlockReq.out in dataplane code (diff) | |
download | qemu-ee17e84830e2e7030d57db5b415719e9022573cd.tar.gz qemu-ee17e84830e2e7030d57db5b415719e9022573cd.tar.xz qemu-ee17e84830e2e7030d57db5b415719e9022573cd.zip |
virtio-blk: Fix and clean up the in_sg and out_sg check
out_sg is checked by iov_to_buf below, so it can be dropped.
Add assert and iov_discard_back around in_sg, as the in_sg is handled in
dataplane code.
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'linux-user/errno_defs.h')
0 files changed, 0 insertions, 0 deletions