From patchwork Wed Jan 12 06:58:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: virtio-9p: Bugfix to send correct iounit X-Patchwork-Submitter: Mohan Kumar M X-Patchwork-Id: 78515 Message-Id: <1294815499-3170-1-git-send-email-mohan@in.ibm.com> To: qemu-devel@nongnu.org Date: Wed, 12 Jan 2011 12:28:19 +0530 From: "M. Mohan Kumar" List-Id: qemu-devel.nongnu.org 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 --- hw/9pfs/virtio-9p.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 3858e17..27e7750 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -1774,7 +1774,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;