aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanjun Guo <[email protected]>2020-05-19 19:21:06 +0100
committerWill Deacon <[email protected]>2020-05-20 09:36:01 +0100
commit70e6352aefb18e6158f334af2e0291f133562b62 (patch)
tree0f3c1c652ddc059f389e57c9f5388c51272873c8
parentcaf2cd610dbbfb533c8b84255fbe77dca36229d0 (diff)
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]>
-rw-r--r--drivers/firmware/arm_sdei.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/firmware/arm_sdei.c b/drivers/firmware/arm_sdei.c
index 5afd7409e6fa..a33b701ab2b0 100644
--- a/drivers/firmware/arm_sdei.c
+++ b/drivers/firmware/arm_sdei.c
@@ -1096,6 +1096,8 @@ static bool __init sdei_present_acpi(void)
if (ACPI_FAILURE(status))
return false;
+ acpi_put_table(sdei_table_header);
+
return true;
}