summaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2014-02-27 11:37:15 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-03-01 22:46:05 +0100
commitb355cee88e3b1a193f0e9a81db810f6f83ad728b (patch)
treeb7021517f72490d68e3ae56df29f2388744f620e /lib/mpi/mpiutil.c
parent6c09ea49ceb8a3b2b709718f6acdb1edd92ea899 (diff)
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 <rui.zhang@intel.com> Cc: All applicable <stable@vger.kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions