]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6cc0e0db427e6b0134e39574be57298bb52a3560
tree52507ce61f037d1edb8b917e23b9ee0dd0a39c2a
parentc3b98e511fd93e633276fd371dc8f5899d989b9f
net/mlx5e: Fix use after free in mlx5e_fs_init()

Call mlx5e_fs_vlan_free(fs) before kvfree(fs).

Fixes: 03cf2b2b7493 ("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