diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-11-05 04:54:53 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-08 02:41:32 +0100 |
commit | 39a4b86f0de4ce5024985a56fc39b16194b04313 (patch) | |
tree | 57d0550e5ea32b7c51ae340d18d8c8a961db8267 /lib/dma-noop.c | |
parent | net: mvpp2: Prevent userspace from changing TX affinities (diff) | |
download | linux-39a4b86f0de4ce5024985a56fc39b16194b04313.tar.xz linux-39a4b86f0de4ce5024985a56fc39b16194b04313.zip |
net/mlx5e/core/en_fs: fix pointer dereference after free in mlx5e_execute_l2_action
hn is being kfree'd in mlx5e_del_l2_from_hash and then dereferenced
by accessing hn->ai.addr
Fix this by copying the MAC address into a local variable for its safe use
in all possible execution paths within function mlx5e_execute_l2_action.
Addresses-Coverity-ID: 1417789
Fixes: eeb66cdb6826 ("net/mlx5: Separate between E-Switch and MPFS")
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/dma-noop.c')
0 files changed, 0 insertions, 0 deletions