net/mlx5e: Fix use after free in mlx5e_fs_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 4 Aug 2022 14:43:21 +0000 (17:43 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 22 Aug 2022 19:57:10 +0000 (12:57 -0700)
commit21234e3a84c70f27ea106411bdd5ef7af17508a6
tree52507ce61f037d1edb8b917e23b9ee0dd0a39c2a
parent6514210b6d0dc36352fda86b71f80f9a9ed4f677
net/mlx5e: Fix use after free in mlx5e_fs_init()

Call mlx5e_fs_vlan_free(fs) before kvfree(fs).

Fixes: af8bbf730068 ("net/mlx5e: Convert mlx5e_flow_steering member of mlx5e_priv to pointer")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c