diff options
author | Marcel Apfelbaum <marcel@redhat.com> | 2018-01-10 21:09:09 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-01-18 21:52:38 +0200 |
commit | fced4d00e68e7559c73746d963265f7fd0b6abf9 (patch) | |
tree | 9c1182fdb3ee28fb6ba4ebc2a339a010ba4e5888 /qdev-monitor.c | |
parent | 37f51384ae05bd50f83308339dbffa3e78404874 (diff) |
hw/pci-bridge: fix QEMU crash because of pcie-root-port
If we try to use more pcie_root_ports then available slots
and an IO hint is passed to the port, QEMU crashes because
we try to init the "IO hint" capability even if the device
is not created.
Fix it by checking for error before adding the capability,
so QEMU can fail gracefully.
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'qdev-monitor.c')
0 files changed, 0 insertions, 0 deletions