| Submitter | Anthony Liguori |
|---|---|
| Date | March 3, 2010, 7:01 p.m. |
| Message ID | <1267642874-15001-10-git-send-email-aliguori@us.ibm.com> |
| Download | mbox | patch |
| Permalink | /patch/46869/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c index b30933a..7822a00 100644 --- a/hw/virtio-9p.c +++ b/hw/virtio-9p.c @@ -1305,8 +1305,20 @@ out: static void v9fs_clunk(V9fsState *s, V9fsPDU *pdu) { - if (debug_9p_pdu) - pprint_pdu(pdu); + int32_t fid; + size_t offset = 7; + int err; + + pdu_unmarshal(pdu, offset, "d", &fid); + + err = free_fid(s, fid); + if (err < 0) + goto out; + + offset = 7; + err = offset; +out: + complete_pdu(s, pdu, err); } static void v9fs_write(V9fsState *s, V9fsPDU *pdu)