diff options
author | Roi Dayan <roid@nvidia.com> | 2021-08-22 10:14:58 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-08-26 15:15:42 -0700 |
commit | 9a5f9cc794e17cf6ed2a5bb215d2e8b6832db444 (patch) | |
tree | f2ce9bebe4ecbf16123d03fb2f21936b158b7a94 /lib/mpi/mpi-add.c | |
parent | 8e7e2e8ed0e251138926838b7933f8eb6dd56b12 (diff) | |
download | linux-stable-9a5f9cc794e17cf6ed2a5bb215d2e8b6832db444.tar.gz linux-stable-9a5f9cc794e17cf6ed2a5bb215d2e8b6832db444.tar.bz2 linux-stable-9a5f9cc794e17cf6ed2a5bb215d2e8b6832db444.zip |
net/mlx5e: Fix possible use-after-free deleting fdb rule
After neigh-update-add failure we are still with a slow path rule but
the driver always assume the rule is an fdb rule.
Fix neigh-update-del by checking slow path tc flag on the flow.
Also fix neigh-update-add for when neigh-update-del fails the same.
Fixes: 5dbe906ff1d5 ("net/mlx5e: Use a slow path rule instead if vxlan neighbour isn't available")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions