mlx4: Fix the release func to be consistent with the allocation one
Subsystems (2)
PATCH 1/1 mlx4: Fix the release func to be consistent with the allocation one
Fix the memory release function to be consistent with the memory allocation one to prevent problems where the implementation of pci_free_consistent and dma_free_coherent are different.
---
drivers/net/mlx4/eq.c +1 -1
@@ -489,7 +489,7 @@ static void mlx4_free_eq(struct mlx4_dev *dev,mlx4_mtt_cleanup (dev, &eq->mtt);for (i =0 ; i < npages; ++i) -pci_free_consistent (dev->pdev,PAGE_SIZE , +dma_free_coherent (&dev->pdev->dev,PAGE_SIZE , eq->page_list[i].buf, eq->page_list[i].map);
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 201107281059.50171.dotanb-g2bIKuvJtcQanlnWow0HJg@public.gmane.org
Thanks, applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html