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 62655397 ("driver core: platform: fix race condition with driver_override") from Adrian Salido. Fixes: 782a985d ("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+
Loading
-
mentioned in commit cb719006
-
mentioned in commit d30aadc3
-
mentioned in commit 3b2211a7
-
mentioned in commit 11ee7434
-
mentioned in commit f5c6aae1
-
mentioned in commit eb153c65
-
mentioned in commit c32c15ff
-
mentioned in commit 93ee3883
-
mentioned in commit 1d4ddc30
-
mentioned in commit 0544aab8
Please sign in to comment