linux/drivers/vfio/pci
Wei Yang 948f7d7b96 vfio-pci: Fix the check on pci device type in vfio_pci_probe()
commit 7c2e211f3c upstream.

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>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2015-01-16 14:34:28 +00:00
..
Kconfig drivers/vfio: remove depends on CONFIG_EXPERIMENTAL 2013-02-24 09:59:44 -07:00
Makefile vfio: Add PCI device driver 2012-07-31 08:16:24 -06:00
vfio_pci.c vfio-pci: Fix the check on pci device type in vfio_pci_probe() 2015-01-16 14:34:28 +00:00
vfio_pci_config.c vfio/pci: Fix sizing of DPA and THP express capabilities 2014-05-30 10:50:31 -06:00
vfio_pci_intrs.c vfio: Use pci_enable_msi_range() and pci_enable_msix_range() 2014-02-14 14:23:40 -07:00
vfio_pci_private.h VFIO-AER: Vfio-pci driver changes for supporting AER 2013-03-11 09:31:22 -06:00
vfio_pci_rdwr.c vfio-pci: Add support for VGA region access 2013-02-18 10:11:13 -07:00