summaryrefslogtreecommitdiff
path: root/drivers/dma
diff options
context:
space:
mode:
authorHanjun Guo <guohanjun@huawei.com>2020-07-22 17:54:21 +0800
committerVinod Koul <vkoul@kernel.org>2020-08-17 10:21:37 +0530
commit7eb48dd094de5fe0e216b550e73aa85257903973 (patch)
tree6fcb404edfbf28ce8b6b5abdb5b3d1014828dc93 /drivers/dma
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff)
dmaengine: acpi: Put the CSRT table after using it
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: Hanjun Guo <guohanjun@huawei.com> Link: https://lore.kernel.org/r/1595411661-15936-1-git-send-email-guohanjun@huawei.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/acpi-dma.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dma/acpi-dma.c b/drivers/dma/acpi-dma.c
index 35f4804ea4af..235f1396f968 100644
--- a/drivers/dma/acpi-dma.c
+++ b/drivers/dma/acpi-dma.c
@@ -135,11 +135,13 @@ static void acpi_dma_parse_csrt(struct acpi_device *adev, struct acpi_dma *adma)
if (ret < 0) {
dev_warn(&adev->dev,
"error in parsing resource group\n");
- return;
+ break;
}
grp = (struct acpi_csrt_group *)((void *)grp + grp->length);
}
+
+ acpi_put_table((struct acpi_table_header *)csrt);
}
/**