Skip to content

Commit 5ec6051

Browse files
guohanjunwilldeacon
authored andcommitted
ACPI: GTDT: Put GTDT table after parsing
The mapped GTDT table needs to be released after the driver init. Signed-off-by: Hanjun Guo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 44cdc7b commit 5ec6051

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/acpi/arm64/gtdt.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ static int __init gtdt_sbsa_gwdt_init(void)
394394
*/
395395
ret = acpi_gtdt_init(table, &timer_count);
396396
if (ret || !timer_count)
397-
return ret;
397+
goto out_put_gtdt;
398398

399399
for_each_platform_timer(platform_timer) {
400400
if (is_non_secure_watchdog(platform_timer)) {
@@ -408,6 +408,8 @@ static int __init gtdt_sbsa_gwdt_init(void)
408408
if (gwdt_count)
409409
pr_info("found %d SBSA generic Watchdog(s).\n", gwdt_count);
410410

411+
out_put_gtdt:
412+
acpi_put_table(table);
411413
return ret;
412414
}
413415

0 commit comments

Comments
 (0)