Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179
b: refs/heads/master
c: 8df8a34
h: refs/heads/master
i:
  177: c91324e
  175: 0740954
v: v3
  • Loading branch information
Roland Dreier authored and Linus Torvalds committed Apr 16, 2005
1 parent 095f62b commit 02b01cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 2a4443a699347cb5ac442491421ce7cd7a12e3e2
refs/heads/master: 8df8a34de60f8e51c87e5c145679f1a896133199
6 changes: 3 additions & 3 deletions trunk/drivers/infiniband/hw/mthca/mthca_av.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int mthca_create_ah(struct mthca_dev *dev,
ah->type = MTHCA_AH_PCI_POOL;

if (dev->hca_type == ARBEL_NATIVE) {
ah->av = kmalloc(sizeof *ah->av, GFP_KERNEL);
ah->av = kmalloc(sizeof *ah->av, GFP_ATOMIC);
if (!ah->av)
return -ENOMEM;

Expand All @@ -77,7 +77,7 @@ int mthca_create_ah(struct mthca_dev *dev,
if (index == -1)
goto on_hca_fail;

av = kmalloc(sizeof *av, GFP_KERNEL);
av = kmalloc(sizeof *av, GFP_ATOMIC);
if (!av)
goto on_hca_fail;

Expand All @@ -89,7 +89,7 @@ int mthca_create_ah(struct mthca_dev *dev,
on_hca_fail:
if (ah->type == MTHCA_AH_PCI_POOL) {
ah->av = pci_pool_alloc(dev->av_table.pool,
SLAB_KERNEL, &ah->avdma);
SLAB_ATOMIC, &ah->avdma);
if (!ah->av)
return -ENOMEM;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/infiniband/hw/mthca/mthca_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ static struct ib_ah *mthca_ah_create(struct ib_pd *pd,
int err;
struct mthca_ah *ah;

ah = kmalloc(sizeof *ah, GFP_KERNEL);
ah = kmalloc(sizeof *ah, GFP_ATOMIC);
if (!ah)
return ERR_PTR(-ENOMEM);

Expand Down

0 comments on commit 02b01cb

Please sign in to comment.