s390x/pci: properly fail if the zPCI device cannot be created
commitb6e67ecc7b6e8938982ab94820c079f24845f623
authorDavid Hildenbrand <david@redhat.com>
Tue, 13 Nov 2018 12:17:10 +0000 (13 13:17 +0100)
committerCornelia Huck <cohuck@redhat.com>
Tue, 13 Nov 2018 15:46:55 +0000 (13 16:46 +0100)
tree63d45250c14feddc8c0a4966eae8faaab96f8036
parent6ff144698935e8bdbc96d255cf49b1a7d54174ac
s390x/pci: properly fail if the zPCI device cannot be created

Right now, errors during realize()/pre_plug/plug of the zPCI device
would result in QEMU crashing instead of failing nicely when creating
a zPCI device for a PCI device.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Collin Walling <walling@linux.ibm.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20181113121710.18490-1-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/s390-pci-bus.c