From 70e6352aefb18e6158f334af2e0291f133562b62 Mon Sep 17 00:00:00 2001 From: Hanjun Guo Date: Tue, 19 May 2020 19:21:06 +0100 Subject: [PATCH] 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 Signed-off-by: James Morse Link: https://lore.kernel.org/linux-arm-kernel/1589021566-46373-1-git-send-email-guohanjun@huawei.com/ Link: https://lore.kernel.org/r/20200519182108.13693-2-james.morse@arm.com Signed-off-by: Will Deacon --- drivers/firmware/arm_sdei.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/firmware/arm_sdei.c b/drivers/firmware/arm_sdei.c index 5afd740..a33b701 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; } -- 2.7.4