Marc-André Lureau 7eb7311427 virtio-serial: avoid crash when port has no name
It seems "name" is not mandatory, and the following command line (based
on one generated by current libvirt) will crash qemu at start:

qemu-system-x86_64 \
    -device virtio-serial-pci \
    -device virtserialport,name=foo \
    -device virtconsole

Program received signal SIGSEGV, Segmentation fault.
__strcmp_ssse3 () at ../sysdeps/x86_64/strcmp.S:210
210        movlpd    (%rsi), %xmm2
Missing separate debuginfos, use: debuginfo-install
python-libs-2.7.5-13.fc20.x86_64
(gdb) bt
 #0  __strcmp_ssse3 () at ../sysdeps/x86_64/strcmp.S:210
 #1  0x000055555566bdc6 in find_port_by_name (name=0x0) at /home/elmarco/src/qemu/hw/char/virtio-serial-bus.c:67

Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Reviewed-by: Amos Kong <akong@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
2014-11-07 10:27:11 +05:30
..
2014-09-29 10:20:05 +02:00
2014-08-15 19:12:48 +04:00
2014-11-04 23:26:12 +01:00
2014-09-02 22:38:16 +04:00
2014-11-04 15:56:26 +00:00
2014-11-03 09:48:41 +00:00
2014-10-22 16:39:49 +01:00
2014-10-31 17:02:22 +01:00
2014-11-04 23:26:13 +01:00
2014-10-24 12:19:11 +01:00
2014-11-04 23:26:15 +01:00
2014-10-31 17:39:41 +01:00
2014-10-28 11:38:18 +01:00