pci-assign: accept Error from pci_add_capability2()
commit42ee4194f2ac7ff16f8e5cb7900c7d35d483f974
authorLaszlo Ersek <lersek@redhat.com>
Thu, 10 Apr 2014 08:24:37 +0000 (10 10:24 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 8 May 2014 18:19:59 +0000 (8 14:19 -0400)
tree7e991743646f4d02a960436f79fa66ac29dde3f6
parentcd9aa33e2cab11fb89071dc2f48550431406e524
pci-assign: accept Error from pci_add_capability2()

Propagate any errors while adding PCI capabilities to
assigned_device_pci_cap_init(). We'll continue the propagation upwards
when assigned_device_pci_cap_init() becomes a leaf itself (when none of
its callees will report errors internally any longer when detecting and
returning them).

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
hw/i386/kvm/pci-assign.c