From: Zhang Rui Date: Thu, 27 Feb 2014 03:37:15 +0000 (+0800) Subject: ACPI / resources: ignore invalid ACPI device resources X-Git-Tag: v3.14-rc6~15^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b355cee88e3b1a193f0e9a81db810f6f83ad728b;p=pandora-kernel.git ACPI / resources: ignore invalid ACPI device resources 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 Cc: All applicable Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed