diff options
author | Roi Dayan <roid@nvidia.com> | 2023-05-29 09:32:57 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-06-23 12:27:34 -0700 |
commit | 15ddd72ee323cf4b7012dc8e002ebb812f92e11f (patch) | |
tree | 286b6f36c12e483b8950e8691eedd8fa5afb111d /net/unix/af_unix.c | |
parent | ae4de894931d37ff12405db29ca3a2395d3a0449 (diff) | |
download | linux-15ddd72ee323cf4b7012dc8e002ebb812f92e11f.tar.gz linux-15ddd72ee323cf4b7012dc8e002ebb812f92e11f.tar.bz2 linux-15ddd72ee323cf4b7012dc8e002ebb812f92e11f.zip |
net/mlx5e: E-Switch, Fix shared fdb error flow
On error flow resources being freed in esw_master_egress_destroy_resources()
but pointers not being set to null if error flow is from creating a
bounce rule. Then in esw_acl_egress_ofld_cleanup() we try to access already
freed pointers. Fix it by resetting the pointers to null.
Also if error is from creating a second or later bounce rule then the
flow group and table being used and cannot and should not be freed.
Add a check to destroy the flow group and table if there are no bounce
rules.
mlx5_core.sf mlx5_core.sf.2: mlx5_destroy_flow_group:2306:(pid 2235): Flow group 4 wasn't destroyed, refcount > 1
mlx5_core.sf mlx5_core.sf.2: mlx5_destroy_flow_table:2295:(pid 2235): Flow table 3 wasn't destroyed, refcount > 1
Fixes: 5e0202eb49ed ("net/mlx5: E-switch, Handle multiple master egress rules")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions