Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125599
b: refs/heads/master
c: 86db2e5
h: refs/heads/master
i:
  125597: 0ecdcad
  125595: 1c0d608
  125591: 3ee69d0
  125583: 396b6d7
  125567: 01a407c
v: v3
  • Loading branch information
Joerg Roedel committed Jan 3, 2009
1 parent 7c38680 commit b06db55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 38e817febe2f12bd2fbf92a1df36f41946d0c223
refs/heads/master: 86db2e5d47bfa61a151d6ac83263f4bde4d52290
8 changes: 5 additions & 3 deletions trunk/arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,12 +587,12 @@ static void dma_ops_reserve_addresses(struct dma_ops_domain *dom,
iommu_area_reserve(dom->bitmap, start_page, pages);
}

static void dma_ops_free_pagetable(struct dma_ops_domain *dma_dom)
static void free_pagetable(struct protection_domain *domain)
{
int i, j;
u64 *p1, *p2, *p3;

p1 = dma_dom->domain.pt_root;
p1 = domain->pt_root;

if (!p1)
return;
Expand All @@ -613,6 +613,8 @@ static void dma_ops_free_pagetable(struct dma_ops_domain *dma_dom)
}

free_page((unsigned long)p1);

domain->pt_root = NULL;
}

/*
Expand All @@ -624,7 +626,7 @@ static void dma_ops_domain_free(struct dma_ops_domain *dom)
if (!dom)
return;

dma_ops_free_pagetable(dom);
free_pagetable(&dom->domain);

kfree(dom->pte_pages);

Expand Down

0 comments on commit b06db55

Please sign in to comment.