diff options
| author | Nicolai Stange <nstange@suse.de> | 2017-09-11 09:45:40 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-05 09:41:46 +0200 |
| commit | b08dc7d4cfa124961798fb82aaca7e5fd44a7671 (patch) | |
| tree | ce79f16198b9db8cc274d28e2f6c53b0176fb99c /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 21a638c5efd6ec7a10441bfb94e15e5288920f07 (diff) | |
PCI: Fix race condition with driver_override
commit 9561475db680f7144d2223a409dd3d7e322aca03 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions
