Commit 70e6352a authored by Hanjun Guo's avatar Hanjun Guo Committed by Will Deacon

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: default avatarHanjun Guo <guohanjun@huawei.com>
Signed-off-by: default avatarJames Morse <james.morse@arm.com>
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.comSigned-off-by: default avatarWill Deacon <will@kernel.org>
parent caf2cd61
...@@ -1096,6 +1096,8 @@ static bool __init sdei_present_acpi(void) ...@@ -1096,6 +1096,8 @@ static bool __init sdei_present_acpi(void)
if (ACPI_FAILURE(status)) if (ACPI_FAILURE(status))
return false; return false;
acpi_put_table(sdei_table_header);
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment