linux-stable/drivers/net/ethernet/mellanox
Leon Romanovsky d515f38c1e net/mlx5e: Allocate flow steering storage during uplink initialization
IPsec code relies on valid priv->fs pointer that is the case in NIC
flow, but not correct in uplink. Before commit that mentioned in the
Fixes line, that pointer was valid in all flows as it was allocated
together with priv struct.

In addition, the cleanup representors routine called to that
not-initialized priv->fs pointer and its internals which caused NULL
deference.

So, move FS allocation to be as early as possible.

Fixes: af8bbf7300 ("net/mlx5e: Convert mlx5e_flow_steering member of mlx5e_priv to pointer")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/ae46fa5bed3c67f937bfdfc0370101278f5422f1.1660639564.git.leonro@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-08-17 21:59:03 -07:00
..
mlx4 Bitmap patches for v6.0-rc1 2022-08-07 17:52:35 -07:00
mlx5/core net/mlx5e: Allocate flow steering storage during uplink initialization 2022-08-17 21:59:03 -07:00
mlxbf_gige mlxbf_gige: remove own module name define and use KBUILD_MODNAME instead 2022-06-15 19:55:52 -07:00
mlxfw
mlxsw mlxsw: spectrum_ptp: Forbid PTP enablement only in RX or in TX 2022-08-15 11:49:58 +01:00
Kconfig
Makefile