diff options
author | Zhang Rui <rui.zhang@intel.com> | 2014-02-27 11:37:15 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-23 21:38:16 -0700 |
commit | 1f7dc3c002c02493219f7e6ee5930a30f7a57175 (patch) | |
tree | 9ae3264f254be54401373f24d97c150bc8941634 /include | |
parent | 4bdd401e8b7384a685606f2254e634805580a2aa (diff) | |
download | linux-3.10-1f7dc3c002c02493219f7e6ee5930a30f7a57175.tar.gz linux-3.10-1f7dc3c002c02493219f7e6ee5930a30f7a57175.tar.bz2 linux-3.10-1f7dc3c002c02493219f7e6ee5930a30f7a57175.zip |
ACPI / resources: ignore invalid ACPI device resources
commit b355cee88e3b1a193f0e9a81db810f6f83ad728b upstream.
ACPI table may export resource entry with 0 length.
But the current code interprets this kind of resource in a wrong way.
It will create a resource structure with
res->end = acpi_resource->start + acpi_resource->len - 1;
This patch fixes a problem on my machine that a platform device fails
to be created because one of its ACPI IO resource entry (start = 0,
end = 0, length = 0) is translated into a generic resource with
start = 0, end = 0xffffffff.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions