Skip to content

Commit

Permalink
firmware: arm_sdei: Put the SDEI table after using it
Browse files Browse the repository at this point in the history
The acpi_get_table() should be coupled with acpi_put_table() if
the mapped table is not used for runtime after the initialization
to release the table mapping, put the SDEI table after using it.

Signed-off-by: Hanjun Guo <[email protected]>
Signed-off-by: James Morse <[email protected]>
Link: https://lore.kernel.org/linux-arm-kernel/[email protected]/
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
  • Loading branch information
guohanjun authored and willdeacon committed May 20, 2020
1 parent caf2cd6 commit 70e6352
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/firmware/arm_sdei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,8 @@ static bool __init sdei_present_acpi(void)
if (ACPI_FAILURE(status))
return false;

acpi_put_table(sdei_table_header);

return true;
}

Expand Down

0 comments on commit 70e6352

Please sign in to comment.