aboutsummaryrefslogtreecommitdiff
path: root/target/lm32/machine.c
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2017-01-25 00:23:49 +0100
committerGreg Kurz <groug@kaod.org>2017-01-25 09:34:35 +0100
commitfa0eb5c512d17a223d9f9bac45da48d78d12f584 (patch)
tree2f4ad581dbc2e494ec8840e76380a8e5202d8c82 /target/lm32/machine.c
parent6fe76acc2d0fcadb1d827cffffab81d6c8d66704 (diff)
downloadqemu-fa0eb5c512d17a223d9f9bac45da48d78d12f584.zip
qemu-fa0eb5c512d17a223d9f9bac45da48d78d12f584.tar.gz
qemu-fa0eb5c512d17a223d9f9bac45da48d78d12f584.tar.bz2
9pfs: fix offset error in v9fs_xattr_read()
The current code tries to copy `read_count' bytes starting at offset `offset' from a `read_count`-sized iovec. This causes v9fs_pack() to fail with ENOBUFS. Since the PDU iovec is already partially filled with `offset' bytes, let's skip them when creating `qiov_full' and have v9fs_pack() to copy the whole of it. Moreover, this is consistent with the other places where v9fs_init_qiov_from_pdu() is called. This fixes commit "bcb8998fac16 9pfs: call v9fs_init_qiov_from_pdu before v9fs_pack". Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'target/lm32/machine.c')
0 files changed, 0 insertions, 0 deletions