]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: TX, Use correct counter in dma_map error flow
authorTariq Toukan <tariqt@mellanox.com>
Tue, 20 Mar 2018 16:17:25 +0000 (18:17 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Apr 2018 19:43:20 +0000 (12:43 -0700)
commit60ad4bd903d2e8b7cf27ddd89a3e2f9b59fd15eb
tree38f2f940d510d21e7bb797da6576cbf4af3b2218
parent105cf201420a14a707a4a69ab9eb30971d59b1b5
net/mlx5e: TX, Use correct counter in dma_map error flow

In case of a dma_mapping_error, do not use wi->num_dma
as a parameter for dma unmap function because it's yet
to be set, and holds an out-of-date value.
Use actual value (local variable num_dma) instead.

Fixes: 707df412b385 ("net/mlx5e: Do not modify the TX SKB")
Fixes: 29aa4f99c31a ("net/mlx5: Ethernet Datapath files")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c