Skip to content

Commit 0a3956c

Browse files
committed
ACPI: MRRM: Check revision of MRRM table
JIRA: https://issues.redhat.com/browse/RHEL-114091 commit dc131bc Author: Tony Luck <tony.luck@intel.com> Date: Wed Oct 22 13:45:23 2025 -0700 Before trying to parse the MRRM table, check that the table revision is the one that is expected. Fixes: b9020bd ("ACPI: MRRM: Minimal parse of ACPI MRRM table") Signed-off-by: Tony Luck <tony.luck@intel.com> Link: https://patch.msgid.link/20251022204523.10752-1-tony.luck@intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
1 parent c386ed8 commit 0a3956c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/acpi/acpi_mrrm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ static __init int acpi_parse_mrrm(struct acpi_table_header *table)
6363
if (!mrrm)
6464
return -ENODEV;
6565

66+
if (mrrm->header.revision != 1)
67+
return -EINVAL;
68+
6669
if (mrrm->flags & ACPI_MRRM_FLAGS_REGION_ASSIGNMENT_OS)
6770
return -EOPNOTSUPP;
6871

0 commit comments

Comments
 (0)