diff options
author | Vlad Buslov <vladbu@nvidia.com> | 2022-01-06 17:40:18 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-02-02 07:59:38 +0300 |
commit | 04f8c12f031fcd0ffa0c72822eb665ceb2c872e7 (patch) | |
tree | 06268da0b4ae5b41c1f4071a47e06eae3a6fe7c3 /scripts/generate_rust_analyzer.py | |
parent | c7108979a010f693d9f3b0adc7aa770b33d1b77d (diff) | |
download | linux-04f8c12f031fcd0ffa0c72822eb665ceb2c872e7.tar.xz |
net/mlx5: Bridge, take rtnl lock in init error handler
The mlx5_esw_bridge_cleanup() is expected to be called with rtnl lock
taken, which is true for mlx5e_rep_bridge_cleanup() function but not for
error handling code in mlx5e_rep_bridge_init(). Add missing rtnl
lock/unlock calls and extend both mlx5_esw_bridge_cleanup() and its dual
function mlx5_esw_bridge_init() with ASSERT_RTNL() to verify the invariant
from now on.
Fixes: 7cd6a54a8285 ("net/mlx5: Bridge, handle FDB events")
Fixes: 19e9bfa044f3 ("net/mlx5: Bridge, add offload infrastructure")
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions