Jan Beulich
2010-Dec-16 15:38 UTC
[Xen-devel] [PATCH] VT-d: fix two map_domain_page() leaks
Signed-off-by: Jan Beulich <jbeulich@novell.com> Tested-by: ZhouPeng <zpengxen@gmail.com> --- a/xen/drivers/passthrough/vtd/iommu.c +++ b/xen/drivers/passthrough/vtd/iommu.c @@ -1331,6 +1331,7 @@ int domain_context_mapping_one( if ( context_set_domain_id(context, domain, iommu) ) { spin_unlock(&iommu->lock); + unmap_vtd_domain_page(context_entries); return -EFAULT; } @@ -1672,6 +1673,7 @@ static int intel_iommu_map_page( if ( old.val == new.val ) { spin_unlock(&hd->mapping_lock); + unmap_vtd_domain_page(page); return 0; } *pte = new; _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel