mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ACPI / PCI / hotplug: unlock in error path in acpiphp_enable_slot()
In acpiphp_enable_slot(), there is a missing unlock path when error occurred. It needs to be unlocked before returning an error. Signed-off-by: Insu Yun <[email protected]> Cc: All applicable <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
afd2ff9b7e
commit
2c3033a066
1 changed files with 3 additions and 1 deletions
|
|
@ -953,8 +953,10 @@ int acpiphp_enable_slot(struct acpiphp_slot *slot)
|
|||
{
|
||||
pci_lock_rescan_remove();
|
||||
|
||||
if (slot->flags & SLOT_IS_GOING_AWAY)
|
||||
if (slot->flags & SLOT_IS_GOING_AWAY) {
|
||||
pci_unlock_rescan_remove();
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
/* configure all functions */
|
||||
if (!(slot->flags & SLOT_ENABLED))
|
||||
|
|
|
|||
Loading…
Reference in a new issue