Skip to contentSkip to conversation

virtio-9p: Bugfix to send correct iounit

PATCH New M. Mohan Kumar 1 participant 1 message Jan 12, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-9p: Bugfix to send correct iounit

LCREATE function packs address of iounit in the pdu, fix that to send actual iounit itself.

---
 hw/9pfs/virtio-9p.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/9pfs/virtio-9p.c +1 -1
index 3858e17..27e7750 100644
@@ -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;
Signature · 1 line
1.7.3.4