diff options
author | Yijing Wang <[email protected]> | 2015-07-17 17:16:32 +0800 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2015-07-30 16:19:53 -0500 |
commit | 017ffe64e8b8c8db0f50433a71da41c6a4e12710 (patch) | |
tree | e15b309ad6ebf5322bb3c2a54ba244750dd57c0b /scripts/gdb/linux/modules.py | |
parent | 67546762978f523749eac157903e0b01c18e083a (diff) |
PCI: Hold pci_slot_mutex while searching bus->slots list
Previously, pci_setup_device() and similar functions searched the
pci_bus->slots list without any locking. It was possible for another
thread to update the list while we searched it.
Add pci_dev_assign_slot() to search the list while holding pci_slot_mutex.
[bhelgaas: changelog, fold in CONFIG_SYSFS fix]
Tested-by: Guenter Roeck <[email protected]>
Signed-off-by: Yijing Wang <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions