ACPI / APEI: Fix parsing HEST that includes Deferred Machine Check subtable
authorYazen Ghannam <yazen.ghannam@amd.com>
Mon, 12 Nov 2018 19:00:55 +0000 (19:00 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 14 Jan 2019 10:54:47 +0000 (11:54 +0100)
commitf3355298fc5a24eb7606448bc02a08b3485e5979
tree09c04d627e1ea31d44867d3dbd40afa607395653
parent6f9c104b183a5a4115a3999ddda6049cbfdbfbbc
ACPI / APEI: Fix parsing HEST that includes Deferred Machine Check subtable

ACPI 6.2 includes a new definition for a Deferred Machine Check "DMC"
subtable.

The definition of this subtable was included in following commit:

c042933df2b1 (ACPICA: Add support for new HEST subtable)

However, the HEST parsing function was not updated to include this new
subtable. Therefore, Linux will fail to parse the HEST on systems that
include a DMC entry.

Add the length check for the new DMC subtable so that HEST parsing
doesn't fail on systems that include it.

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/hest.c