PCI: pciehp: Always protect pciehp_disable_slot() with hotplug mutex
authorGuenter Roeck <linux@roeck-us.net>
Sun, 1 Nov 2015 21:58:40 +0000 (13:58 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 25 Nov 2015 17:45:42 +0000 (11:45 -0600)
commit64609eaab242d36e3e3b7cb81d31a028719feb74
tree54d8bbdcaa70a0a5bdc4e0c7d02a3c098ea02654
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4
PCI: pciehp: Always protect pciehp_disable_slot() with hotplug mutex

When called from pciehp_sysfs_disable_slot(), the call to
pciehp_disable_slot() was not protected by the hotplug mutex.

Hold slot->hotplug_lock while calling pciehp_disable_slot().

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rajat Jain <rajatxjain@gmail.com>
drivers/pci/hotplug/pciehp_ctrl.c