From c81fc2c78c0165ecc9eea36b7bfd7c984ad7cef6 Mon Sep 17 00:00:00 2001 From: "Aneesh Kumar K.V" Date: Sat, 18 Jun 2011 23:19:07 +0530 Subject: [PATCH] tools/kvm/9p: Fix the pdu len. 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 --- virtio/9p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtio/9p.c b/virtio/9p.c index cb09aa3..83da12c 100644 --- a/virtio/9p.c +++ b/virtio/9p.c @@ -459,7 +459,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; }