]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / LPIT: Correct LPIT end address for lpit_process()
authorLenny Szubowicz <lszubowi@redhat.com>
Thu, 2 May 2019 20:00:52 +0000 (16:00 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 May 2019 17:30:27 +0000 (19:30 +0200)
commit636a67053bd66f977b37f6545a4a3b5395c14111
tree42526a695629017f564701f6ae322f17ab3c0f18
parent7f3e30282b380958e65348f1509b90f11030d416
ACPI / LPIT: Correct LPIT end address for lpit_process()

Correct the LPIT end address which is passed into lpit_process()
and the end address limit test in lpit_process().

The LPI state descriptor subtables follow the fixed sized
acpi_lpit_header up to the end of the LPIT. The last LPI state
descriptor can end at exactly the end of the LPIT.

Note that this is a fix to a latent problem. Although incorrect,
the unpatched version works because the passed in end address
is just slightly beyond the actual end of the LPIT and the size
of the ACPI LPIT header is smaller than the size of the only
currently defined LPI state descriptor, acpi_lpit_native.

Signed-off-by: Lenny Szubowicz <lszubowi@redhat.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_lpit.c