hw/pci: fixed error flow in pci_qdev_init
authorMarcel Apfelbaum <marcel.a@redhat.com>
Mon, 27 Oct 2014 17:34:41 +0000 (19:34 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 2 Nov 2014 11:44:12 +0000 (13:44 +0200)
commit178e785fb4507ec3462dc772bbe08303416ece47
treecaa1085c2bf22ef277b66edc4cf7065cc382b4de
parent9b23cfb76b3a5e9eb5cc899eaf2f46bc46d33ba4
hw/pci: fixed error flow in pci_qdev_init

Verify return code for pci_add_option_rom.

Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
hw/pci/pci.c