projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5bb841
)
iommu/amd: Free domain id when free a domain of struct dma_ops_domain
author
Baoquan He
<bhe@redhat.com>
Thu, 15 Sep 2016 08:50:52 +0000
(16:50 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 09:48:36 +0000
(10:48 +0100)
commit
c3db901c54466a9c135d1e6e95fec452e8a42666
upstream.
The current code missed freeing domain id when free a domain of
struct dma_ops_domain.
Signed-off-by: Baoquan He <bhe@redhat.com>
Fixes:
ec487d1a110a
('x86, AMD IOMMU: add domain allocation and deallocation functions')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/amd_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/amd_iommu.c
b/drivers/iommu/amd_iommu.c
index 0397985a260128c6054513a22133adafd460991c..5975d76ce755dcb395a082a42bb6c11e8becbdd5 100644
(file)
--- a/
drivers/iommu/amd_iommu.c
+++ b/
drivers/iommu/amd_iommu.c
@@
-1833,6
+1833,9
@@
static void dma_ops_domain_free(struct dma_ops_domain *dom)
kfree(dom->aperture[i]);
}
+ if (dom->domain.id)
+ domain_id_free(dom->domain.id);
+
kfree(dom);
}