diff options
author | Amit Shah | 2015-03-04 09:59:52 +0100 |
---|---|---|
committer | Amit Shah | 2015-03-11 12:07:45 +0100 |
commit | b18a755c4266a340a25ab4118525bd57c3dfc3fa (patch) | |
tree | 4bb910b7a8a1e0193b1da1c1fed794239d495383 /linux-user/main.c | |
parent | Merge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-signed' into s... (diff) | |
download | qemu-b18a755c4266a340a25ab4118525bd57c3dfc3fa.tar.gz qemu-b18a755c4266a340a25ab4118525bd57c3dfc3fa.tar.xz qemu-b18a755c4266a340a25ab4118525bd57c3dfc3fa.zip |
virtio-serial: fix segfault on NULL port names
Commit d0a0bfe6729ef6044d76ea49fafa07e29fa598bd added checks for port
names, but didn't add a check to ensure port->name is non-NULL. This
results in a SIGSEGV when adding a port when one of the previously-added
ports didn't have the 'name' property set.
https://bugzilla.redhat.com/show_bug.cgi?id=1192775
Reported-by: vivian zhang <vivianzhang@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'linux-user/main.c')
0 files changed, 0 insertions, 0 deletions