]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
tools/kvm/9p: Fix the pdu len.
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sat, 18 Jun 2011 17:49:07 +0000 (23:19 +0530)
committerSasha Levin <levinsasha928@gmail.com>
Sun, 19 Jun 2011 21:18:25 +0000 (17:18 -0400)
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 <aneesh.kumar@linux.vnet.ibm.com>
tools/kvm/virtio/9p.c

index cb09aa33213c75623fdc507b0fd15b2d478df40f..83da12c7d0864e5ee008173627d879be349c83e2 100644 (file)
@@ -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;
 }