OpenCloudOS-Kernel/drivers/vfio
Wei Yang 7c2e211f3c vfio-pci: Fix the check on pci device type in vfio_pci_probe()
Current vfio-pci just supports normal pci device, so vfio_pci_probe() will
return if the pci device is not a normal device. While current code makes a
mistake. PCI_HEADER_TYPE is the offset in configuration space of the device
type, but we use this value to mask the type value.

This patch fixs this by do the check directly on the pci_dev->hdr_type.

Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Cc: stable@vger.kernel.org # v3.6+
2015-01-07 10:29:11 -07:00
..
pci vfio-pci: Fix the check on pci device type in vfio_pci_probe() 2015-01-07 10:29:11 -07:00
Kconfig drivers/vfio: allow type-1 IOMMU instantiation on top of an ARM SMMU 2014-11-14 09:10:59 -07:00
Makefile drivers/vfio: Fix EEH build error 2014-08-08 10:36:20 -06:00
vfio.c driver core: dev_set_drvdata can no longer fail 2014-05-27 13:40:51 -07:00
vfio_iommu_spapr_tce.c drivers/vfio: EEH support for VFIO PCI device 2014-08-05 15:28:48 +10:00
vfio_iommu_type1.c IOMMU Updates for Linux v3.18 2014-10-15 07:23:49 +02:00
vfio_spapr_eeh.c drivers/vfio: Export vfio_spapr_iommu_eeh_ioctl() with GPL 2014-09-29 10:31:51 -06:00