Dinghao Liu 5b0bb12c58 net/mlx5e: Fix memleak in mlx5e_create_l2_table_groups
When mlx5_create_flow_group() fails, ft->g should be
freed just like when kvzalloc() fails. The caller of
mlx5e_create_l2_table_groups() does not catch this
issue on failure, which leads to memleak.

Fixes: 33cfaaa8f36f ("net/mlx5e: Split the main flow steering table")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
2021-01-07 12:22:51 -08:00
..
2020-09-30 21:26:30 -07:00
2020-12-06 07:43:54 +02:00
2020-12-08 11:28:47 -08:00
2020-12-06 07:43:54 +02:00
2020-12-08 11:28:48 -08:00
2020-12-02 17:29:23 -08:00
2020-04-23 21:42:11 +03:00
2020-04-23 21:42:12 +03:00
2020-04-23 21:42:13 +03:00
2020-04-23 21:42:14 +03:00
2020-04-23 21:42:14 +03:00