]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix crash formatting virtio console
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 19 Oct 2011 10:45:10 +0000 (11:45 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 3 Nov 2011 12:01:12 +0000 (12:01 +0000)
commit5990d92192e53c0215c1dd0bd03e446c33c7eb22
treecf780b80bf2b8ced5e1f7d32c2d8037b3b40ea75
parent0873b688c6771a6901d7ec95f5b8e88cc957947b
Fix crash formatting virtio console

qemuBuildVirtioSerialPortDevStr was mistakenly accessing the
target.name field in the virDomainChrDef object for chardevs
belonging to a console. Those chardevs only have port set,
and if there's > 1 console, the > 1port number results in
trying to access a target.name with address 0x1

* src/qemu/qemu_command.c: Fix target.name handling and
  make code more robust wrt error reporting

* src/qemu/qemu_command.c: Conditionally access target.name
src/qemu/qemu_command.c