Skip to content

Commit 70e6352

Browse files
guohanjunwilldeacon
authored andcommitted
firmware: arm_sdei: Put the SDEI table after using it
The acpi_get_table() should be coupled with acpi_put_table() if the mapped table is not used for runtime after the initialization to release the table mapping, put the SDEI table after using it. Signed-off-by: Hanjun Guo <[email protected]> Signed-off-by: James Morse <[email protected]> Link: https://lore.kernel.org/linux-arm-kernel/[email protected]/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent caf2cd6 commit 70e6352

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/firmware/arm_sdei.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,8 @@ static bool __init sdei_present_acpi(void)
10961096
if (ACPI_FAILURE(status))
10971097
return false;
10981098

1099+
acpi_put_table(sdei_table_header);
1100+
10991101
return true;
11001102
}
11011103

0 commit comments

Comments
 (0)