Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112609
b: refs/heads/master
c: c97ac53
h: refs/heads/master
i:
  112607: b19ac93
v: v3
  • Loading branch information
Joerg Roedel authored and Ingo Molnar committed Sep 19, 2008
1 parent 4ed352a commit 904d3e3
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 13d9fead3daa0efa1b8bb6ae59650e4453b39128
refs/heads/master: c97ac5359e6897abe22770740294dda185bac30d
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1176,11 +1176,11 @@ static void *alloc_coherent(struct device *dev, size_t size,
if (!get_device_resources(dev, &iommu, &domain, &devid))
flag &= ~(__GFP_DMA | __GFP_HIGHMEM | __GFP_DMA32);

flag |= __GFP_ZERO;
virt_addr = (void *)__get_free_pages(flag, get_order(size));
if (!virt_addr)
return 0;

memset(virt_addr, 0, size);
paddr = virt_to_phys(virt_addr);

if (!iommu || !domain) {
Expand Down

0 comments on commit 904d3e3

Please sign in to comment.