History

net/mlx5e: Avoid unbounded peer devices when unpairing TC hairpin rules

If the peer device was already unbound, then do not attempt to modify it's resources, otherwise we will crash on dereferencing non-existing device.

Alaa Hleihel committed 8 years ago

Commit 4d8fcf21 parent 43955a46 files · +71 −3Browse files

Showing the changes to include/linux (1 of 6 files). Show all

Unified · Split

include/linux/mlx5/transobj.h+2−0
@@ -90,6 +90,8 @@ struct mlx5_hairpin { · 89 unmodified lines
90 90
91 u32 *rqn;91 u32 *rqn;
92 u32 *sqn;92 u32 *sqn;
93
94 bool peer_gone;
93};95};
94 96
95struct mlx5_hairpin *97struct mlx5_hairpin *