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)
commit32865e3e010f0ea81e518878e9a6b1492ff07281
tree42526a695629017f564701f6ae322f17ab3c0f18
parentcd6c84d8f0cdc911df435bb075ba22ce3c605b07
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