]> Git Repo - qemu.git/commit
virtio-blk: Fix and clean up the in_sg and out_sg check
authorFam Zheng <[email protected]>
Wed, 11 Jun 2014 04:11:50 +0000 (12:11 +0800)
committerKevin Wolf <[email protected]>
Fri, 27 Jun 2014 16:18:31 +0000 (18:18 +0200)
commitee17e84830e2e7030d57db5b415719e9022573cd
treef24f67489f917b1376d0b13f548c7fc3fd40b949
parentab2e3cd2dc97ad87fcdfb814a13b2ef386a5f13a
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 <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
hw/block/virtio-blk.c
This page took 0.024885 seconds and 4 git commands to generate.