Skip to content

Commit 9572223

Browse files
guohanjunrafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent ead7ba1 commit 9572223

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/acpi/sleep.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,8 +1297,10 @@ static void acpi_sleep_hibernate_setup(void)
12971297
return;
12981298

12991299
acpi_get_table(ACPI_SIG_FACS, 1, (struct acpi_table_header **)&facs);
1300-
if (facs)
1300+
if (facs) {
13011301
s4_hardware_signature = facs->hardware_signature;
1302+
acpi_put_table((struct acpi_table_header *)facs);
1303+
}
13021304
}
13031305
#else /* !CONFIG_HIBERNATION */
13041306
static inline void acpi_sleep_hibernate_setup(void) {}

0 commit comments

Comments
 (0)