Skip to content

Commit 701dafe

Browse files
guohanjunwilldeacon
authored andcommitted
ACPI: IORT: Add comments for not calling acpi_put_table()
The iort_table will be used at runtime after acpi_iort_init(), so add some comments to clarify this to make it less confusing. Signed-off-by: Hanjun Guo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 5ec6051 commit 701dafe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/acpi/arm64/iort.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,6 +1667,10 @@ void __init acpi_iort_init(void)
16671667
{
16681668
acpi_status status;
16691669

1670+
/* iort_table will be used at runtime after the iort init,
1671+
* so we don't need to call acpi_put_table() to release
1672+
* the IORT table mapping.
1673+
*/
16701674
status = acpi_get_table(ACPI_SIG_IORT, 0, &iort_table);
16711675
if (ACPI_FAILURE(status)) {
16721676
if (status != AE_NOT_FOUND) {

0 commit comments

Comments
 (0)