Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119745
b: refs/heads/master
c: b8d9905
h: refs/heads/master
i:
  119743: a13ffbe
v: v3
  • Loading branch information
Joerg Roedel committed Dec 8, 2008
1 parent 311a16e commit 6e89928
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 8ad909c4c1b91bd35ba6a2af5e7ab3fc8d9fe283
refs/heads/master: b8d9905d025d80a2357e8ce4704fde2923f6a1bd
3 changes: 2 additions & 1 deletion trunk/arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,8 @@ static void __unmap_single(struct amd_iommu *iommu,
dma_addr_t i, start;
unsigned int pages;

if ((dma_addr == 0) || (dma_addr + size > dma_dom->aperture_size))
if ((dma_addr == bad_dma_address) ||
(dma_addr + size > dma_dom->aperture_size))
return;

pages = iommu_num_pages(dma_addr, size, PAGE_SIZE);
Expand Down

0 comments on commit 6e89928

Please sign in to comment.