OSDN Git Service

9pfs: call v9fs_init_qiov_from_pdu before v9fs_pack
authorStefano Stabellini <sstabellini@kernel.org>
Tue, 3 Jan 2017 16:28:44 +0000 (17:28 +0100)
committerGreg Kurz <groug@kaod.org>
Tue, 3 Jan 2017 16:28:44 +0000 (17:28 +0100)
commitbcb8998fac16a7f26ac9cc3637e17701cfe69e5b
treed624c766523407a9a95f877b17c2327997a6dc4e
parentea83441cc44143b5b68a400ae4292a3eef14a675
9pfs: call v9fs_init_qiov_from_pdu before v9fs_pack

v9fs_xattr_read should not access VirtQueueElement elems directly.
Move v9fs_init_qiov_from_pdu up in the file and call
v9fs_init_qiov_from_pdu before v9fs_pack. Use v9fs_pack on the new
iovec.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Greg Kurz <groug@kaod.org>
hw/9pfs/9p.c