projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43a0541
)
iommu/tegra-smmu: Properly release domain resources
author
Dmitry Osipenko
<digetx@gmail.com>
Wed, 6 Mar 2019 22:50:08 +0000
(
01:50
+0300)
committer
Joerg Roedel
<jroedel@suse.de>
Thu, 11 Apr 2019 12:51:37 +0000
(14:51 +0200)
Release all memory allocations associated with a released domain and emit
warning if domain is in-use at the time of destruction.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/tegra-smmu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/tegra-smmu.c
b/drivers/iommu/tegra-smmu.c
index 8d30653cd13a77056c05337a1e47dc9634e6b779..27b1249f0773a765e730312cab0bdc8460095b09 100644
(file)
--- a/
drivers/iommu/tegra-smmu.c
+++ b/
drivers/iommu/tegra-smmu.c
@@
-327,6
+327,9
@@
static void tegra_smmu_domain_free(struct iommu_domain *domain)
/* TODO: free page directory and page tables */
+ WARN_ON_ONCE(as->use_count);
+ kfree(as->count);
+ kfree(as->pts);
kfree(as);
}