linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] firmware: arm_sdei: Put the SDEI table after using it
@ 2020-05-09 10:52 Hanjun Guo
  2020-05-18 18:59 ` James Morse
  0 siblings, 1 reply; 3+ messages in thread
From: Hanjun Guo @ 2020-05-09 10:52 UTC (permalink / raw)
  To: James Morse; +Cc: linux-arm-kernel, Hanjun Guo

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 <guohanjun@huawei.com>
---
 drivers/firmware/arm_sdei.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/firmware/arm_sdei.c b/drivers/firmware/arm_sdei.c
index 334c8be..5c42757 100644
--- a/drivers/firmware/arm_sdei.c
+++ b/drivers/firmware/arm_sdei.c
@@ -1113,6 +1113,7 @@ static bool __init sdei_present_acpi(void)
 	if (ACPI_FAILURE(status))
 		return false;
 
+	acpi_put_table(sdei_table_header);
 	pdev = platform_device_register_simple(sdei_driver.driver.name, 0, NULL,
 					       0);
 	if (IS_ERR(pdev))
-- 
1.7.12.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-19  1:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-09 10:52 [PATCH] firmware: arm_sdei: Put the SDEI table after using it Hanjun Guo
2020-05-18 18:59 ` James Morse
2020-05-19  1:53   ` Hanjun Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).