Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138793
b: refs/heads/master
c: fa4b57c
h: refs/heads/master
i:
  138791: cf656d7
v: v3
  • Loading branch information
Suresh Siddha authored and H. Peter Anvin committed Mar 17, 2009
1 parent 892c02f commit 9691858
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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: 68a8ca593fac82e336a792226272455901fa83df
refs/heads/master: fa4b57cc045d6134b9862b2873f9c8ba9ed53ffe
6 changes: 3 additions & 3 deletions trunk/drivers/pci/dmar.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,20 +809,20 @@ int dmar_enable_qi(struct intel_iommu *iommu)
if (iommu->qi)
return 0;

iommu->qi = kmalloc(sizeof(*qi), GFP_KERNEL);
iommu->qi = kmalloc(sizeof(*qi), GFP_ATOMIC);
if (!iommu->qi)
return -ENOMEM;

qi = iommu->qi;

qi->desc = (void *)(get_zeroed_page(GFP_KERNEL));
qi->desc = (void *)(get_zeroed_page(GFP_ATOMIC));
if (!qi->desc) {
kfree(qi);
iommu->qi = 0;
return -ENOMEM;
}

qi->desc_status = kmalloc(QI_LENGTH * sizeof(int), GFP_KERNEL);
qi->desc_status = kmalloc(QI_LENGTH * sizeof(int), GFP_ATOMIC);
if (!qi->desc_status) {
free_page((unsigned long) qi->desc);
kfree(qi);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/pci/intr_remapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,12 +447,12 @@ static int setup_intr_remapping(struct intel_iommu *iommu, int mode)
struct page *pages;

ir_table = iommu->ir_table = kzalloc(sizeof(struct ir_table),
GFP_KERNEL);
GFP_ATOMIC);

if (!iommu->ir_table)
return -ENOMEM;

pages = alloc_pages(GFP_KERNEL | __GFP_ZERO, INTR_REMAP_PAGE_ORDER);
pages = alloc_pages(GFP_ATOMIC | __GFP_ZERO, INTR_REMAP_PAGE_ORDER);

if (!pages) {
printk(KERN_ERR "failed to allocate pages of order %d\n",
Expand Down

0 comments on commit 9691858

Please sign in to comment.