diff options
| author | Gerd Hoffmann | 2015-05-06 12:58:19 +0200 |
|---|---|---|
| committer | Gerd Hoffmann | 2015-05-19 12:47:08 +0200 |
| commit | a48da7b5bc1f0c98e7a124337140efd47049066c (patch) | |
| tree | b33e1d8c96d39b42d99c901d52ab9b189a5de3b5 /include/exec | |
| parent | Merge remote-tracking branch 'remotes/pmaydell/tags/pull-cocoa-20150519' into... (diff) | |
| download | qemu-a48da7b5bc1f0c98e7a124337140efd47049066c.tar.gz qemu-a48da7b5bc1f0c98e7a124337140efd47049066c.tar.xz 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 'include/exec')
0 files changed, 0 insertions, 0 deletions
