diff options
author | Zhang Rui <rui.zhang@intel.com> | 2014-02-27 03:37:15 (GMT) |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-03-22 21:01:56 (GMT) |
commit | 1ddeb7b86737d0ec23b230d4df0b4663646a9442 (patch) | |
tree | f10a0a77d64dab2036799a6db2917d56f7f295db /samples | |
parent | 44ba741a0f470c22c691586dea1e219df757fef2 (diff) | |
download | linux-fsl-qoriq-1ddeb7b86737d0ec23b230d4df0b4663646a9442.tar.xz |
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: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions