Yijing Wang 017ffe64e8 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 <linux@roeck-us.net>
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2015-07-30 16:19:53 -05:00
..
2014-04-18 14:20:41 +02:00
2014-11-27 09:32:58 +11:00
2014-12-11 17:48:14 -08:00
2014-08-13 15:13:42 +10:00
2014-09-25 23:14:46 +10:00
2014-11-03 12:12:32 +11:00
2014-11-03 12:12:32 +11:00
2015-02-17 14:34:51 -08:00
2015-07-01 19:40:18 -07:00
2015-03-24 13:15:52 +11:00
2014-12-11 17:48:14 -08:00
2014-09-25 23:14:41 +10:00
2014-08-06 13:04:32 +02:00
2015-04-07 17:15:13 +10:00
2015-06-24 17:49:38 -07:00
2015-05-14 16:59:21 +10:00