mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
commit9561475db6upstream. 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 commit6265539776("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>