]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/pci: Fix handling of RC integrated endpoint PCIe capability size
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 27 Jul 2017 16:39:33 +0000 (10:39 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 27 Jul 2017 16:39:33 +0000 (10:39 -0600)
commit2bf2d7eb4986e699a6cf1a11a9f932ac5c0e3779
tree37f7e8e0a9f6d746598c1a2e8383df1cdfb95600
parent4c119c9f7434858cdb50732b63f80e57438a1c41
vfio/pci: Fix handling of RC integrated endpoint PCIe capability size

Root complex integrated endpoints do not have a link and therefore may
use a smaller PCIe capability in config space than we expect when
building our config map.  Add a case for these to avoid reporting an
erroneous overlap.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_config.c