aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/eq.c
diff options
context:
space:
mode:
authorDotan Barak <dotanb@dev.mellanox.co.il>2011-10-06 12:33:12 -0400
committerRoland Dreier <roland@purestorage.com>2011-10-06 12:33:12 -0400
commita8dc0dffae651befa24dc518ac1715b8d3173c34 (patch)
tree4600386197b061e6e654bdf16dbface5f3253969 /drivers/net/mlx4/eq.c
parent0f6740c7c455693f719580f34bb8afa8a298ea36 (diff)
mlx4_core: Use the right function to free eq->page_list entries
Fix the memory release function to be consistent with the memory allocation one to prevent problems if the implementation of pci_free_consistent() and dma_free_coherent() are different. Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il> Reviewed-by: Eli Cohen <eli@mellanox.co.il> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/net/mlx4/eq.c')
-rw-r--r--drivers/net/mlx4/eq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx4/eq.c b/drivers/net/mlx4/eq.c
index 1ad1f6029af8..869a2c220a7b 100644
--- a/drivers/net/mlx4/eq.c
+++ b/drivers/net/mlx4/eq.c
@@ -484,7 +484,7 @@ static void mlx4_free_eq(struct mlx4_dev *dev,
484 484
485 mlx4_mtt_cleanup(dev, &eq->mtt); 485 mlx4_mtt_cleanup(dev, &eq->mtt);
486 for (i = 0; i < npages; ++i) 486 for (i = 0; i < npages; ++i)
487 pci_free_consistent(dev->pdev, PAGE_SIZE, 487 dma_free_coherent(&dev->pdev->dev, PAGE_SIZE,
488 eq->page_list[i].buf, 488 eq->page_list[i].buf,
489 eq->page_list[i].map); 489 eq->page_list[i].map);
490 490