Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125613
b: refs/heads/master
c: 98383fc
h: refs/heads/master
i:
  125611: 456c8ca
v: v3
  • Loading branch information
Joerg Roedel committed Jan 3, 2009
1 parent b826853 commit a445a01
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c156e347d6d3c36b6843c3b168eda61b9a02c827
refs/heads/master: 98383fc301c6546af0f3a8a1d3cb8bf218f7e940
21 changes: 21 additions & 0 deletions trunk/arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1636,4 +1636,25 @@ static int amd_iommu_domain_init(struct iommu_domain *dom)
return -ENOMEM;
}

static void amd_iommu_domain_destroy(struct iommu_domain *dom)
{
struct protection_domain *domain = dom->priv;

if (!domain)
return;

if (domain->dev_cnt > 0)
cleanup_domain(domain);

BUG_ON(domain->dev_cnt != 0);

free_pagetable(domain);

domain_id_free(domain->id);

kfree(domain);

dom->priv = NULL;
}

#endif

0 comments on commit a445a01

Please sign in to comment.