pci_bridge_dev: fix error path in pci_bridge_dev_initfn()
commit80aa796bf38b7ef21daa42673b4711510c450d8a
authorJason Baron <jbaron@redhat.com>
Thu, 3 May 2012 02:42:15 +0000 (2 22:42 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 11 Jun 2012 19:55:13 +0000 (11 22:55 +0300)
tree4285fabc369601809ec99108b510fbe78aad50d9
parent266ca11a0433643a3cc3146a9837d9f2b0bfbe3b
pci_bridge_dev: fix error path in pci_bridge_dev_initfn()

Currently, we do not properly cleanup, if pci_bridge_dev_initfn
fails to initialize properly. Make sure to call pci_bridge_exitfn()
in the error path.

Signed-off-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci_bridge_dev.c