projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44cdc7b
)
ACPI: GTDT: Put GTDT table after parsing
author
Hanjun Guo
<guohanjun@huawei.com>
Fri, 8 May 2020 04:05:52 +0000
(12:05 +0800)
committer
Will Deacon
<will@kernel.org>
Mon, 18 May 2020 17:08:04 +0000
(18:08 +0100)
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>
drivers/acpi/arm64/gtdt.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/arm64/gtdt.c
b/drivers/acpi/arm64/gtdt.c
index
01962c6
..
f2d0e59
100644
(file)
--- 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 re
t;
+
goto out_put_gtd
t;
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;
}