Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: GTDT: Put GTDT table after parsing

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

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Link: https://lore.kernel.org/r/1588910753-18543-1-git-send-email-guohanjun@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Hanjun Guo and committed by
Will Deacon
5ec60510 44cdc7b1

+3 -1
+3 -1
drivers/acpi/arm64/gtdt.c
··· 394 394 */ 395 395 ret = acpi_gtdt_init(table, &timer_count); 396 396 if (ret || !timer_count) 397 - return ret; 397 + goto out_put_gtdt; 398 398 399 399 for_each_platform_timer(platform_timer) { 400 400 if (is_non_secure_watchdog(platform_timer)) { ··· 408 408 if (gwdt_count) 409 409 pr_info("found %d SBSA generic Watchdog(s).\n", gwdt_count); 410 410 411 + out_put_gtdt: 412 + acpi_put_table(table); 411 413 return ret; 412 414 } 413 415