Message ID | 20190503171544.260901-3-andre.przywara@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | kvmtool: clang/GCC9 fixes | expand |
diff --git a/vfio/pci.c b/vfio/pci.c index 10aa87b1..a4086326 100644 --- a/vfio/pci.c +++ b/vfio/pci.c @@ -557,11 +557,6 @@ static int vfio_pci_parse_caps(struct vfio_device *vdev) pdev->hdr.capabilities = 0; for (; pos; pos = next) { - if (pos >= PCI_DEV_CFG_SIZE) { - vfio_dev_warn(vdev, "ignoring cap outside of config space"); - return -EINVAL; - } - cap = PCI_CAP(&pdev->hdr, pos); next = cap->next;