From patchwork Wed Jan 12 06:58:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohan Kumar M X-Patchwork-Id: 78515 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B1CE6B70AF for ; Wed, 12 Jan 2011 17:59:49 +1100 (EST) Received: from localhost ([127.0.0.1]:46590 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcugL-0001zY-NC for incoming@patchwork.ozlabs.org; Wed, 12 Jan 2011 01:59:45 -0500 Received: from [140.186.70.92] (port=39819 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pcuf9-0001W8-T5 for qemu-devel@nongnu.org; Wed, 12 Jan 2011 01:58:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pcuf8-0005kY-CY for qemu-devel@nongnu.org; Wed, 12 Jan 2011 01:58:31 -0500 Received: from e28smtp02.in.ibm.com ([122.248.162.2]:50830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pcuf7-0005ih-MP for qemu-devel@nongnu.org; Wed, 12 Jan 2011 01:58:30 -0500 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by e28smtp02.in.ibm.com (8.14.4/8.13.1) with ESMTP id p0C6wNeM017101 for ; Wed, 12 Jan 2011 12:28:23 +0530 Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p0C6wMaP2130072 for ; Wed, 12 Jan 2011 12:28:22 +0530 Received: from d28av05.in.ibm.com (loopback [127.0.0.1]) by d28av05.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p0C6wMQ3013478 for ; Wed, 12 Jan 2011 17:58:22 +1100 Received: from oc3510633643.ibm.com ([9.122.21.91]) by d28av05.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p0C6wMx9013474 for ; Wed, 12 Jan 2011 17:58:22 +1100 From: "M. Mohan Kumar" To: qemu-devel@nongnu.org Date: Wed, 12 Jan 2011 12:28:19 +0530 Message-Id: <1294815499-3170-1-git-send-email-mohan@in.ibm.com> X-Mailer: git-send-email 1.7.3.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: [Qemu-devel] [PATCH] virtio-9p: Bugfix to send correct iounit X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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;