From patchwork Sat Jun 18 17:49:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aneesh Kumar K.V" X-Patchwork-Id: 893612 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5IHnXpa020708 for ; Sat, 18 Jun 2011 17:49:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751886Ab1FRRt3 (ORCPT ); Sat, 18 Jun 2011 13:49:29 -0400 Received: from e23smtp06.au.ibm.com ([202.81.31.148]:44071 "EHLO e23smtp06.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751801Ab1FRRtV (ORCPT ); Sat, 18 Jun 2011 13:49:21 -0400 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [202.81.31.245]) by e23smtp06.au.ibm.com (8.14.4/8.13.1) with ESMTP id p5IHmgv5018114 for ; Sun, 19 Jun 2011 03:48:42 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p5IHnHKm884930 for ; Sun, 19 Jun 2011 03:49:17 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p5IHnHW5028501 for ; Sun, 19 Jun 2011 03:49:17 +1000 Received: from skywalker.in.ibm.com ([9.77.201.141]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p5IHnArh028441; Sun, 19 Jun 2011 03:49:16 +1000 From: "Aneesh Kumar K.V" To: penberg@kernel.org Cc: kvm@vger.kernel.org, "Aneesh Kumar K.V" Subject: [PATCH 4/5] tools/kvm/9p: Fix the pdu len. Date: Sat, 18 Jun 2011 23:19:07 +0530 Message-Id: <1308419348-31934-4-git-send-email-aneesh.kumar@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1308419348-31934-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <1308419348-31934-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 18 Jun 2011 17:49:33 +0000 (UTC) The TSTAT output formwat is wS. So not sure whey we need sizeof(u16)*2 in pdu length. Signed-off-by: Aneesh Kumar K.V --- tools/kvm/virtio/9p.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/kvm/virtio/9p.c b/tools/kvm/virtio/9p.c index 3172c1a..ef2fbaf 100644 --- a/tools/kvm/virtio/9p.c +++ b/tools/kvm/virtio/9p.c @@ -458,7 +458,7 @@ static bool virtio_p9_stat(struct p9_dev *p9dev, struct p9_msg *msg, ret = virtio_p9_fill_stat(p9dev, fid->path, &st, rstat); - *outlen = VIRTIO_P9_HDR_LEN + ret + sizeof(u16) * 2; + *outlen = VIRTIO_P9_HDR_LEN + ret + sizeof(u16); set_p9msg_hdr(outmsg, *outlen, P9_RSTAT, msg->tag); return true; }