aboutsummaryrefslogtreecommitdiff
path: root/hw/moxie
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-05-06 12:58:19 +0200
committerGerd Hoffmann <kraxel@redhat.com>2015-05-19 12:47:08 +0200
commita48da7b5bc1f0c98e7a124337140efd47049066c (patch)
treeb33e1d8c96d39b42d99c901d52ab9b189a5de3b5 /hw/moxie
parentfaa261a7fb254866bdd5b6a25ad94677945f21b4 (diff)
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/moxie')
0 files changed, 0 insertions, 0 deletions