Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73903
b: refs/heads/master
c: 3d9befd
h: refs/heads/master
i:
  73901: 6dcfb3e
  73899: a5740a0
  73895: d79068d
  73887: 57a7928
v: v3
  • Loading branch information
Yinghai Lu authored and Thomas Gleixner committed Nov 17, 2007
1 parent 9258002 commit efbcac6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 05dfa35e84331c6921ab394463069e9376f0bd76
refs/heads/master: 3d9befd2cdf65b1768b0d3078a65cc0ae9aa6412
6 changes: 6 additions & 0 deletions trunk/arch/x86/pci/acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ count_resource(struct acpi_resource *acpi_res, void *data)
struct acpi_resource_address64 addr;
acpi_status status;

if (info->res_num >= PCI_BUS_NUM_RESOURCES)
return AE_OK;

status = resource_to_addr(acpi_res, &addr);
if (ACPI_SUCCESS(status))
info->res_num++;
Expand All @@ -93,6 +96,9 @@ setup_resource(struct acpi_resource *acpi_res, void *data)
unsigned long flags;
struct resource *root;

if (info->res_num >= PCI_BUS_NUM_RESOURCES)
return AE_OK;

status = resource_to_addr(acpi_res, &addr);
if (!ACPI_SUCCESS(status))
return AE_OK;
Expand Down

0 comments on commit efbcac6

Please sign in to comment.