alistair23-linux/drivers/pci
Nicolai Stange 9561475db6 PCI: Fix race condition with driver_override
The driver_override implementation is susceptible to a race condition when
different threads are reading vs. storing a different driver override.  Add
locking to avoid the race condition.

This is in close analogy to commit 6265539776 ("driver core: platform:
fix race condition with driver_override") from Adrian Salido.

Fixes: 782a985d7a ("PCI: Introduce new device binding path using pci_dev.driver_override")
Signed-off-by: Nicolai Stange <nstange@suse.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org	# v3.16+
2017-09-25 18:34:54 -05:00
..
dwc Merge branch 'pci/trivial' into next 2017-09-07 13:24:20 -05:00
endpoint PCI: endpoint: Use correct "end of test" interrupt 2017-09-20 13:56:06 -05:00
host pci-v4.14-changes 2017-09-08 15:47:43 -07:00
hotplug Merge branch 'pci/misc' into next 2017-09-07 13:24:16 -05:00
pcie dmi: Mark all struct dmi_system_id instances const 2017-09-14 11:59:30 +02:00
switch
access.c
ats.c
bus.c
ecam.c
host-bridge.c
hotplug-pci.c
htirq.c
iov.c
irq.c
Kconfig
Makefile
mmap.c
msi.c pci-v4.14-changes 2017-09-08 15:47:43 -07:00
of.c
pci-acpi.c
pci-driver.c ACPI updates for v4.14-rc1 2017-09-05 12:45:03 -07:00
pci-label.c
pci-mid.c
pci-stub.c
pci-sysfs.c PCI: Fix race condition with driver_override 2017-09-25 18:34:54 -05:00
pci.c Revert "PCI: Avoid race while enabling upstream bridges" 2017-09-15 01:33:51 -05:00
pci.h
probe.c pci-v4.14-changes 2017-09-08 15:47:43 -07:00
proc.c
quirks.c dmi: Mark all struct dmi_system_id instances const 2017-09-14 11:59:30 +02:00
remove.c
rom.c
search.c
setup-bus.c
setup-irq.c
setup-res.c
slot.c
syscall.c
vc.c
vpd.c
xen-pcifront.c