mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 15:43:35 -04:00
net/mlx5e: Don't access directly DMA device pointer
Use specialized helper to fetch DMA device pointer. Reviewed-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
committed by
Saeed Mahameed
parent
14624d7247
commit
7c11eae2fd
@@ -186,7 +186,7 @@ static int mlx5e_macsec_aso_reg_mr(struct mlx5_core_dev *mdev, struct mlx5e_macs
|
||||
return err;
|
||||
}
|
||||
|
||||
dma_device = &mdev->pdev->dev;
|
||||
dma_device = mlx5_core_dma_dev(mdev);
|
||||
dma_addr = dma_map_single(dma_device, umr->ctx, sizeof(umr->ctx), DMA_BIDIRECTIONAL);
|
||||
err = dma_mapping_error(dma_device, dma_addr);
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user