|
@@ -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)))
|