Skip to content
Commit 64609eaa authored by Guenter Roeck's avatar Guenter Roeck Committed by Bjorn Helgaas
Browse files

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: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarRajat Jain <rajatxjain@gmail.com>
parent 1ec21837
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment