mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +00: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:
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user