diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2015-05-06 12:58:19 +0200 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-05-19 12:47:08 +0200 |
| commit | a48da7b5bc1f0c98e7a124337140efd47049066c (patch) | |
| tree | b33e1d8c96d39b42d99c901d52ab9b189a5de3b5 /hw/core/qdev-properties-system.c | |
| parent | faa261a7fb254866bdd5b6a25ad94677945f21b4 (diff) | |
| download | focaccia-qemu-a48da7b5bc1f0c98e7a124337140efd47049066c.tar.gz focaccia-qemu-a48da7b5bc1f0c98e7a124337140efd47049066c.zip | |
serial: fix multi-pci card error cleanup.
Put the number of serial ports into a local variable in multi_serial_pci_realize, then increment the port count (pci->ports) as we initialize the serial port cores. Now pci->ports always holds the number of successfully initialized ports and we can use multi_serial_pci_exit to properly cleanup the already initialized bits in case of a init failure. https://bugzilla.redhat.com/show_bug.cgi?id=970551 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/core/qdev-properties-system.c')
0 files changed, 0 insertions, 0 deletions