]> Git Repo - linux.git/commitdiff
firmware: arm_sdei: Put the SDEI table after using it
authorHanjun Guo <[email protected]>
Tue, 19 May 2020 18:21:06 +0000 (19:21 +0100)
committerWill Deacon <[email protected]>
Wed, 20 May 2020 08:36:01 +0000 (09:36 +0100)
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]>
drivers/firmware/arm_sdei.c

index 5afd7409e6fad93ab0dfbfc10c7874dee0fa1569..a33b701ab2b07eecefa6ae95ae958ea891a01663 100644 (file)
@@ -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;
 }
 
This page took 0.055372 seconds and 4 git commands to generate.