From: Yijing Wang Date: Fri, 17 Jul 2015 09:16:32 +0000 (+0800) Subject: PCI: Hold pci_slot_mutex while searching bus->slots list X-Git-Tag: omap-for-v4.3/fixes-merge-window~31^2~3^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=017ffe64e8b8c8db0f50433a71da41c6a4e12710;p=pandora-kernel.git 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 Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed