|
@@ -953,8 +953,10 @@ int acpiphp_enable_slot(struct acpiphp_slot *slot)
|
|
|
{
|
|
{
|
|
|
pci_lock_rescan_remove();
|
|
pci_lock_rescan_remove();
|
|
|
|
|
|
|
|
- if (slot->flags & SLOT_IS_GOING_AWAY)
|
|
|
|
|
|
|
+ if (slot->flags & SLOT_IS_GOING_AWAY) {
|
|
|
|
|
+ pci_unlock_rescan_remove();
|
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
/* configure all functions */
|
|
/* configure all functions */
|
|
|
if (!(slot->flags & SLOT_ENABLED))
|
|
if (!(slot->flags & SLOT_ENABLED))
|