Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174782
b: refs/heads/master
c: 9b536e0
h: refs/heads/master
v: v3
  • Loading branch information
Kenji Kaneshige authored and Jesse Barnes committed Nov 6, 2009
1 parent d10475c commit e3aa980
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e0cd5160346f5b88fe536f529066f102518f8acd
refs/heads/master: 9b536e0b6164d8875b4a5bb66cc102dcf0badeba
5 changes: 3 additions & 2 deletions trunk/drivers/pci/hotplug/acpi_pcihp.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ int acpi_get_hp_hw_control_from_firmware(struct pci_dev *pdev, u32 flags)
status = acpi_pci_osc_control_set(handle, flags);
if (ACPI_SUCCESS(status))
goto got_one;
if (status == AE_SUPPORT)
goto no_control;
kfree(string.pointer);
string = (struct acpi_buffer){ ACPI_ALLOCATE_BUFFER, NULL };
}
Expand Down Expand Up @@ -394,10 +396,9 @@ int acpi_get_hp_hw_control_from_firmware(struct pci_dev *pdev, u32 flags)
if (ACPI_FAILURE(status))
break;
}

no_control:
dbg("Cannot get control of hotplug hardware for pci %s\n",
pci_name(pdev));

kfree(string.pointer);
return -ENODEV;
got_one:
Expand Down

0 comments on commit e3aa980

Please sign in to comment.