Re: [libvirt] [PATCH 2/7] Fix crash formatting virtio console

2011-11-01 Thread Eric Blake
On 10/20/2011 08:47 AM, Daniel P. Berrange wrote: From: "Daniel P. Berrange" 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> 1por

[libvirt] [PATCH 2/7] Fix crash formatting virtio console

2011-10-20 Thread Daniel P. Berrange
From: "Daniel P. Berrange" 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