Re: [Qemu-devel] [PATCH] serial: fix multi-pci card error cleanup.

2015-05-19 Thread Paolo Bonzini
On 06/05/2015 13:31, Gerd Hoffmann wrote: > 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

[Qemu-devel] [PATCH] serial: fix multi-pci card error cleanup.

2015-05-06 Thread Gerd Hoffmann
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