projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ead7ba1
)
ACPI: sleep: Put the FACS table after using it
author
Hanjun Guo
<guohanjun@huawei.com>
Thu, 7 May 2020 09:09:21 +0000
(17:09 +0800)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Sat, 9 May 2020 09:29:17 +0000
(11:29 +0200)
Put the FACS table after using it to release the table
mapping.
Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sleep.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/sleep.c
b/drivers/acpi/sleep.c
index 4edc8a3ce40fdc50039f0460953b3e422d193efe..30e2df9b4e0ded1f9ba08ce74cb3ad03587483cc 100644
(file)
--- a/
drivers/acpi/sleep.c
+++ b/
drivers/acpi/sleep.c
@@
-1297,8
+1297,10
@@
static void acpi_sleep_hibernate_setup(void)
return;
acpi_get_table(ACPI_SIG_FACS, 1, (struct acpi_table_header **)&facs);
- if (facs)
+ if (facs)
{
s4_hardware_signature = facs->hardware_signature;
+ acpi_put_table((struct acpi_table_header *)facs);
+ }
}
#else /* !CONFIG_HIBERNATION */
static inline void acpi_sleep_hibernate_setup(void) {}