diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-09-18 13:57:07 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-09-29 16:45:50 +0300 |
commit | 499f3aa4323775d5320bdf7ccc26576c54a54169 (patch) | |
tree | d44adb6a79189602090023b95c6d2707bb356d85 /drivers/iommu/intel-iommu.c | |
parent | 9ffecb10283508260936b96022d4ee43a7798b4c (diff) | |
download | linux-499f3aa4323775d5320bdf7ccc26576c54a54169.tar.xz |
iommu/vt-d: Fix memory leak in dmar_insert_one_dev_info()
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>
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 2d7349a3ee14..da99310c1b25 100644 --- 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; } |