mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
net/mlx5e: TX, Use correct counter in dma_map error flow
[ Upstream commitd9a96ec362] 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:34802a42b3("net/mlx5e: Do not modify the TX SKB") Fixes:e586b3b0ba("net/mlx5: Ethernet Datapath files") Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b047794cc3
commit
eac1ab609b
1 changed files with 10 additions and 10 deletions
Loading…
Add table
Add a link
Reference in a new issue