aboutsummaryrefslogtreecommitdiff
path: root/block/crypto.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-05-24 17:21:22 +0200
committerKevin Wolf <kwolf@redhat.com>2016-07-05 16:46:26 +0200
commit25ec177d90de0992f4d4d5be8ab1e02b9fa2bdf1 (patch)
tree35864d9b886059572839bcdf3e4aa482c36187b8 /block/crypto.c
parent28b04a8f655820cca2cc1c8fe409462b46d50d41 (diff)
downloadqemu-25ec177d90de0992f4d4d5be8ab1e02b9fa2bdf1.zip
qemu-25ec177d90de0992f4d4d5be8ab1e02b9fa2bdf1.tar.gz
qemu-25ec177d90de0992f4d4d5be8ab1e02b9fa2bdf1.tar.bz2
block: Convert bdrv_co_writev() to BdrvChild
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/crypto.c')
-rw-r--r--block/crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/crypto.c b/block/crypto.c
index 87b1e00..64bf095 100644
--- a/block/crypto.c
+++ b/block/crypto.c
@@ -507,7 +507,7 @@ block_crypto_co_writev(BlockDriverState *bs, int64_t sector_num,
qemu_iovec_reset(&hd_qiov);
qemu_iovec_add(&hd_qiov, cipher_data, cur_nr_sectors * 512);
- ret = bdrv_co_writev(bs->file->bs,
+ ret = bdrv_co_writev(bs->file,
payload_offset + sector_num,
cur_nr_sectors, &hd_qiov);
if (ret < 0) {