]> git.karo-electronics.de Git - linux-beck.git/commit
PNPACPI: truncate _CRS windows with _LEN > _MAX - _MIN + 1
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Thu, 25 Mar 2010 16:32:49 +0000 (10:32 -0600)
committerLen Brown <len.brown@intel.com>
Sun, 4 Apr 2010 05:33:43 +0000 (01:33 -0400)
commit3162b6f0c5e1fcad372d64194fb3cb968941b428
tree31cde2251d3fc28c4e77c8dd213bca0a5a2fedfd
parent2eaa9cfdf33b8d7fb7aff27792192e0019ae8fc6
PNPACPI: truncate _CRS windows with _LEN > _MAX - _MIN + 1

The ACPI spec (sec 6.4.3.5 in v4.0) requires that for Address Space Resource
Descriptors, _LEN <= _MAX - _MIN + 1 in all cases, but there are BIOSes that
violate this.  We experimentally determined that Windows truncates the
resource so it doesn't extend past _MAX, so let's do the same thing in
Linux.

http://bugzilla.kernel.org/show_bug.cgi?id=15480

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/pnp/pnpacpi/rsparser.c