diff options
author | 2017-08-16 14:37:11 +0300 | |
---|---|---|
committer | 2017-08-30 21:20:43 +0300 | |
commit | 0556ce72ab16156af6c94cdc7964e4310acc97c0 (patch) | |
tree | 0ccd97c3e7a4a131f2214ff2a135975e3a096a71 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | net/mlx5: Remove the flag MLX5_INTERFACE_STATE_SHUTDOWN (diff) | |
download | wireguard-linux-0556ce72ab16156af6c94cdc7964e4310acc97c0.tar.xz wireguard-linux-0556ce72ab16156af6c94cdc7964e4310acc97c0.zip |
net/mlx5e: Fix dangling page pointer on DMA mapping error
Function mlx5e_dealloc_rx_wqe is using page pointer value as an
indication to valid DMA mapping. In case that the mapping failed, we
released the page but kept the dangling pointer. Store the page pointer
only after the DMA mapping passed to avoid invalid page DMA unmap.
Fixes: bc77b240b3c5 ("net/mlx5e: Add fragmented memory support for RX multi packet WQE")
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions