Commit e26a8e68 authored by Hanjun Guo's avatar Hanjun Guo Committed by Greg Kroah-Hartman

dmaengine: acpi: Put the CSRT table after using it

[ Upstream commit 7eb48dd0 ]

The acpi_get_table() should be coupled with acpi_put_table() if
the mapped table is not used at runtime to release the table
mapping, put the CSRT table buf after using it.
Signed-off-by: default avatarHanjun Guo <guohanjun@huawei.com>
Link: https://lore.kernel.org/r/1595411661-15936-1-git-send-email-guohanjun@huawei.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 281c6d20
...@@ -131,11 +131,13 @@ static void acpi_dma_parse_csrt(struct acpi_device *adev, struct acpi_dma *adma) ...@@ -131,11 +131,13 @@ static void acpi_dma_parse_csrt(struct acpi_device *adev, struct acpi_dma *adma)
if (ret < 0) { if (ret < 0) {
dev_warn(&adev->dev, dev_warn(&adev->dev,
"error in parsing resource group\n"); "error in parsing resource group\n");
return; break;
} }
grp = (struct acpi_csrt_group *)((void *)grp + grp->length); grp = (struct acpi_csrt_group *)((void *)grp + grp->length);
} }
acpi_put_table((struct acpi_table_header *)csrt);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment