diff options
author | Gustavo A. R. Silva | 2017-11-04 22:54:53 -0500 |
---|---|---|
committer | David S. Miller | 2017-11-08 10:41:32 +0900 |
commit | 39a4b86f0de4ce5024985a56fc39b16194b04313 (patch) | |
tree | 57d0550e5ea32b7c51ae340d18d8c8a961db8267 /drivers/net/bonding | |
parent | 13c249a94f525fe4c757d28854049780b25605c4 (diff) |
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 'drivers/net/bonding')
0 files changed, 0 insertions, 0 deletions