提交 70e6352a 编写于 作者: H Hanjun Guo 提交者: 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: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NJames 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: NWill Deacon <will@kernel.org>
上级 caf2cd61
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册