All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ACPI: GTDT: Put GTDT table after parsing
@ 2020-05-08  4:05 ` Hanjun Guo
  0 siblings, 0 replies; 6+ messages in thread
From: Hanjun Guo @ 2020-05-08  4:05 UTC (permalink / raw)
  To: Lorenzo Pieralisi, Rafael J. Wysocki, Sudeep Holla, Will Deacon
  Cc: linux-acpi, linux-arm-kernel, Hanjun Guo

The mapped GTDT table needs to be released after
the driver init.

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
---

Patch 1/2 2/2 are based on top of for-next/acpi branch of                       
the ARM64 repo.

 drivers/acpi/arm64/gtdt.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/acpi/arm64/gtdt.c b/drivers/acpi/arm64/gtdt.c
index 01962c6..f2d0e59 100644
--- a/drivers/acpi/arm64/gtdt.c
+++ b/drivers/acpi/arm64/gtdt.c
@@ -394,7 +394,7 @@ static int __init gtdt_sbsa_gwdt_init(void)
 	 */
 	ret = acpi_gtdt_init(table, &timer_count);
 	if (ret || !timer_count)
-		return ret;
+		goto out_put_gtdt;
 
 	for_each_platform_timer(platform_timer) {
 		if (is_non_secure_watchdog(platform_timer)) {
@@ -408,6 +408,8 @@ static int __init gtdt_sbsa_gwdt_init(void)
 	if (gwdt_count)
 		pr_info("found %d SBSA generic Watchdog(s).\n", gwdt_count);
 
+out_put_gtdt:
+	acpi_put_table(table);
 	return ret;
 }
 
-- 
1.7.12.4


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

end of thread, other threads:[~2020-05-18 23:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08  4:05 [PATCH 1/2] ACPI: GTDT: Put GTDT table after parsing Hanjun Guo
2020-05-08  4:05 ` Hanjun Guo
2020-05-08  4:05 ` [PATCH 2/2] ACPI: IORT: Add comments for not calling acpi_put_table() Hanjun Guo
2020-05-08  4:05   ` Hanjun Guo
2020-05-18 23:04 ` [PATCH 1/2] ACPI: GTDT: Put GTDT table after parsing Will Deacon
2020-05-18 23:04   ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.