vtd: Require unmap_vtd_domain_page() on a couple of early exit paths.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xen.org>
xen-unstable changeset:   22549:aa18b8ddaf05
xen-unstable date:        Thu Dec 16 15:38:57 2010 +0000
This commit is contained in:
Keir Fraser committed 2010-12-16 15:40:51 +00:00
1 parent e290721d58
commit 3c38ca5cb1
1 file changed
+2
+2
View File
@@ -1300,6 +1300,7 @@ static 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;
}
@@ -1631,6 +1632,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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.