| Submitter | Aneesh Kumar K.V |
|---|---|
| Date | March 25, 2010, 4:43 p.m. |
| Message ID | <1269535420-31206-33-git-send-email-aneesh.kumar@linux.vnet.ibm.com> |
| Download | mbox | patch |
| Permalink | /patch/48584/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c index 1b791ca..e6ddb3a 100644 --- a/hw/virtio-9p.c +++ b/hw/virtio-9p.c @@ -725,7 +725,10 @@ static void v9fs_version(V9fsState *s, V9fsPDU *pdu) size_t offset = 7; pdu_unmarshal(pdu, offset, "ds", &msize, &version); - BUG_ON(strcmp(version.data, "9P2000.u") != 0); + + if (strcmp(version.data, "9P2000.u")) { + v9fs_string_sprintf(&version, "unknown"); + } offset += pdu_marshal(pdu, offset, "ds", msize, &version); complete_pdu(s, pdu, offset);