projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ffecb1
)
iommu/vt-d: Fix memory leak in dmar_insert_one_dev_info()
author
Sudip Mukherjee
<sudipm.mukherjee@gmail.com>
Fri, 18 Sep 2015 10:57:07 +0000
(16:27 +0530)
committer
Joerg Roedel
<jroedel@suse.de>
Tue, 29 Sep 2015 13:45:50 +0000
(15:45 +0200)
We are returning NULL if we are not able to attach the iommu
to the domain but while returning we missed freeing info.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/intel-iommu.c
b/drivers/iommu/intel-iommu.c
index 2d7349a3ee1496408f051b4da8accebc8dd02ec1..da99310c1b25d86287bf4fbc2c2efdd4ee7be548 100644
(file)
--- a/
drivers/iommu/intel-iommu.c
+++ b/
drivers/iommu/intel-iommu.c
@@
-2301,6
+2301,7
@@
static struct dmar_domain *dmar_insert_one_dev_info(struct intel_iommu *iommu,
if (ret) {
spin_unlock_irqrestore(&device_domain_lock, flags);
+ free_devinfo_mem(info);
return NULL;
}