提交 499f3aa4 编写于 作者: S Sudip Mukherjee 提交者: Joerg Roedel

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: NSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
上级 9ffecb10
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册