Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335852
b: refs/heads/master
c: 3e2f61c
h: refs/heads/master
v: v3
  • Loading branch information
Xi Wang authored and David S. Miller committed Nov 20, 2012
1 parent 107fbdd commit d747667
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: 1a4901177574083c35fafc24c4d151c2a7c7647c
refs/heads/master: 3e2f61cd7a4e7642dcac4371734426e572f10370
8 changes: 5 additions & 3 deletions trunk/drivers/net/wan/ixp4xx_hss.c
Original file line number Diff line number Diff line change
Expand Up @@ -969,10 +969,12 @@ static int init_hdlc_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 d747667

Please sign in to comment.