]> git.baikalelectronics.ru Git - kernel.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)
commitdd83138e06eb2e2b1eec7fa96719b20204dc1da6
tree31cde2251d3fc28c4e77c8dd213bca0a5a2fedfd
parent6aef398e7a793081e5ddeab9842b013aa96c5c45
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