From: M. Mohan Kumar Date: Tue, 1 Feb 2011 08:51:41 +0000 (+0530) Subject: virtio-9p: Bugfix to send correct iounit X-Git-Tag: qemu-xen-4.3.0-rc1~2842^2~3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1d810aeb4eda548e8a875db9e364732b8765d894;p=qemu-upstream-4.5-testing.git virtio-9p: Bugfix to send correct iounit LCREATE function packs address of iounit in the pdu, fix that to send actual iounit itself. Signed-off-by: M. Mohan Kumar Acked-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri --- diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 18968c25c..ca394570c 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -1771,7 +1771,7 @@ static void v9fs_post_lcreate(V9fsState *s, V9fsLcreateState *vs, int err) v9fs_string_copy(&vs->fidp->path, &vs->fullname); stat_to_qid(&vs->stbuf, &vs->qid); vs->offset += pdu_marshal(vs->pdu, vs->offset, "Qd", &vs->qid, - &vs->iounit); + vs->iounit); err = vs->offset; } else { vs->fidp->fid_type = P9_FID_NONE;