Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189129
b: refs/heads/master
c: d558b48
h: refs/heads/master
i:
  189127: d13d999
v: v3
  • Loading branch information
Bjorn Helgaas authored and Jesse Barnes committed Mar 25, 2010
1 parent ef0ba07 commit 3564980
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 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: eb9fc8ef7cb1362374e55d9503e3e7458f319991
refs/heads/master: d558b483d5a73f5718705b270cb2090f66ea48c8
13 changes: 12 additions & 1 deletion trunk/arch/x86/pci/acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ setup_resource(struct acpi_resource *acpi_res, void *data)
acpi_status status;
unsigned long flags;
struct resource *root, *conflict;
u64 start, end;
u64 start, end, max_len;

status = resource_to_addr(acpi_res, &addr);
if (!ACPI_SUCCESS(status))
Expand All @@ -140,6 +140,17 @@ setup_resource(struct acpi_resource *acpi_res, void *data)
} else
return AE_OK;

max_len = addr.maximum - addr.minimum + 1;
if (addr.address_length > max_len) {
dev_printk(KERN_DEBUG, &info->bridge->dev,
"host bridge window length %#llx doesn't fit in "
"%#llx-%#llx, trimming\n",
(unsigned long long) addr.address_length,
(unsigned long long) addr.minimum,
(unsigned long long) addr.maximum);
addr.address_length = max_len;
}

start = addr.minimum + addr.translation_offset;
end = start + addr.address_length - 1;

Expand Down

0 comments on commit 3564980

Please sign in to comment.