Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335851
b: refs/heads/master
c: 1a49011
h: refs/heads/master
i:
  335849: 33d546b
  335847: cb14c14
v: v3
  • Loading branch information
Xi Wang authored and David S. Miller committed Nov 20, 2012
1 parent fb13858 commit 107fbdd
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: da9da01d9199b5bb15289d0859053c9aa3a34ac0
refs/heads/master: 1a4901177574083c35fafc24c4d151c2a7c7647c
8 changes: 5 additions & 3 deletions trunk/drivers/net/ethernet/xscale/ixp4xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1102,10 +1102,12 @@ static int init_queues(struct port *port)
{
int i;

if (!ports_open)
if (!(dma_pool = dma_pool_create(DRV_NAME, NULL,
POOL_ALLOC_SIZE, 32, 0)))
if (!ports_open) {
dma_pool = dma_pool_create(DRV_NAME, &port->netdev->dev,
POOL_ALLOC_SIZE, 32, 0);
if (!dma_pool)
return -ENOMEM;
}

if (!(port->desc_tab = dma_pool_alloc(dma_pool, GFP_KERNEL,
&port->desc_tab_phys)))
Expand Down

0 comments on commit 107fbdd

Please sign in to comment.