linux/drivers/pci
Jiang Liu 2ccc246d9c xen-pcifront: Use hotplug-safe pci_get_domain_bus_and_slot()
Following code has a race window between pci_find_bus() and pci_get_slot()
if PCI hotplug operation happens between them which removes the pci_bus.
So use PCI hotplug safe interface pci_get_domain_bus_and_slot() instead,
which also reduces code complexity.

    struct pci_bus *pci_bus = pci_find_bus(domain, busno);
    struct pci_dev *pci_dev = pci_get_slot(pci_bus, devfn);

Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2012-09-12 14:15:16 -06:00
..
hotplug PCI/cpcihp: Use hotplug-safe pci_get_domain_bus_and_slot() 2012-09-12 14:13:59 -06:00
pcie Merge branch 'topic/huang-d3cold-v7' into next 2012-06-23 11:59:43 -06:00
.gitignore
access.c
ats.c
bus.c PCI: fix undefined reference to 'pci_fixup_final_inited' 2012-07-16 09:14:49 -06:00
host-bridge.c
hotplug-pci.c
hotplug.c
htirq.c
ioapic.c
iov.c PCI: Use hotplug-safe pci_get_domain_bus_and_slot() 2012-09-12 14:14:30 -06:00
irq.c
Kconfig
Makefile PCI: build resource code for M68K architecture 2012-07-13 09:40:37 -06:00
msi.c
msi.h
of.c
pci-acpi.c Merge branch 'topic/huang-d3cold-v7' into next 2012-06-23 11:59:43 -06:00
pci-driver.c PCI changes for the 3.6 merge window: 2012-07-24 16:17:07 -07:00
pci-label.c
pci-stub.c
pci-sysfs.c Merge branch 'topic/huang-d3cold-v7' into next 2012-06-23 11:59:43 -06:00
pci.c PCI: EHCI: fix crash during suspend on ASUS computers 2012-07-10 09:52:05 -07:00
pci.h Merge branch 'pci/rafael-pci_set_power_state-rebase' into next 2012-07-05 16:29:52 -06:00
probe.c Merge branch 'pci/bjorn-p2p-bridge-windows' into next 2012-07-10 08:36:09 -06:00
proc.c
quirks.c PCI changes for the 3.6 merge window: 2012-07-24 16:17:07 -07:00
remove.c
rom.c
search.c
setup-bus.c PCI changes for the 3.6 merge window: 2012-07-24 16:17:07 -07:00
setup-irq.c
setup-res.c Merge branch 'pci/nikhil-big-bar-fixes' into next 2012-07-18 14:06:20 -06:00
slot.c
syscall.c
vpd.c
xen-pcifront.c xen-pcifront: Use hotplug-safe pci_get_domain_bus_and_slot() 2012-09-12 14:15:16 -06:00