Skip to content

Commit dc131bc

Browse files
aeglrafaeljw
authored andcommitted
ACPI: MRRM: Check revision of MRRM table
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent dcb6fa3 commit dc131bc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)