diff options
author | Hanjun Guo <guohanjun@huawei.com> | 2020-05-07 17:09:21 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-05-09 11:29:17 +0200 |
commit | 95722237cb2ae4f7b73471058cdb19e8f4057c93 (patch) | |
tree | 9c6f65db35fe16981fc49e2bb5f0b07ba382aad5 /drivers/acpi/sleep.c | |
parent | ead7ba136267b4c36af855ab6e237c998d83df05 (diff) | |
download | linux-95722237cb2ae4f7b73471058cdb19e8f4057c93.tar.gz linux-95722237cb2ae4f7b73471058cdb19e8f4057c93.tar.bz2 linux-95722237cb2ae4f7b73471058cdb19e8f4057c93.zip |
ACPI: sleep: Put the FACS table after using it
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>
Diffstat (limited to 'drivers/acpi/sleep.c')
-rw-r--r-- | drivers/acpi/sleep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index 4edc8a3ce40f..30e2df9b4e0d 100644 --- 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) {} |