OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9123e3a
)
dmaengine: acpi: Put the CSRT table after using it
author
Hanjun Guo
<guohanjun@huawei.com>
Wed, 22 Jul 2020 09:54:21 +0000
(17:54 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Mon, 17 Aug 2020 04:51:37 +0000
(10:21 +0530)
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>
drivers/dma/acpi-dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/acpi-dma.c
b/drivers/dma/acpi-dma.c
index
35f4804
..
235f139
100644
(file)
--- 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);
}
/**