diff options
author | Amit Shah | 2014-07-15 06:47:02 +0200 |
---|---|---|
committer | Amit Shah | 2014-08-18 19:12:49 +0200 |
commit | d0a0bfe6729ef6044d76ea49fafa07e29fa598bd (patch) | |
tree | ed221783760dc3733384087a4ae9fc4c5dbe3525 /hw/scsi/esp-pci.c | |
parent | virtio-serial: create a linked list of all active devices (diff) | |
download | qemu-d0a0bfe6729ef6044d76ea49fafa07e29fa598bd.tar.gz qemu-d0a0bfe6729ef6044d76ea49fafa07e29fa598bd.tar.xz qemu-d0a0bfe6729ef6044d76ea49fafa07e29fa598bd.zip |
virtio-serial: search for duplicate port names before adding new ports
Before adding new ports to VirtIOSerial devices, check if there's a
conflict in the 'name' parameter. This ensures two virtserialports with
identical names are not initialized.
Reported-by: <mazhang@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/scsi/esp-pci.c')
0 files changed, 0 insertions, 0 deletions