hw/9pfs: Ensure an error is reported to user if 9pfs mount tag is too long
commita2f507d9089f57525d58cd0852c6bea6720074e5
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 12 Oct 2011 13:41:24 +0000 (12 19:11 +0530)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sat, 15 Oct 2011 10:00:26 +0000 (15 15:30 +0530)
tree32db2b25701a42d5f70dfe61b9b0ba68b7eff3df
parentea60f31593cd7d16c6e557e8cf4caf1d1e1680b6
hw/9pfs: Ensure an error is reported to user if 9pfs mount tag is too long

If the 9pfs mount tag is longer than MAX_TAG_LEN bytes, rather than
silently truncating the tag which will likely break the guest OS,
report an immediate error and exit QEMU

* hw/9pfs/virtio-9p-device.c: Report error & exit if mount tag is
  too long

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
hw/9pfs/virtio-9p-device.c