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 6265539776a0 ("driver core: platform:
fix race condition with driver_override") from Adrian Salido.

Fixes: 782a985d7af2 ("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
..
2017-09-07 13:24:20 -05:00
2017-09-08 15:47:43 -07:00
2017-09-07 13:24:16 -05:00
2017-05-08 19:03:25 -07:00
2017-07-02 16:14:27 -05:00
2017-09-08 15:47:43 -07:00
2017-09-05 12:45:03 -07:00
2017-09-08 15:47:43 -07:00
2016-11-29 18:05:09 -06:00
2017-01-14 11:37:18 +01:00
2016-06-20 13:24:20 -05:00