]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net/mlx5: Fix memory leak on flow table creation error flow
authorRoi Dayan <roid@nvidia.com>
Tue, 12 Jan 2021 12:04:29 +0000 (14:04 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 26 Jan 2021 23:38:36 +0000 (15:38 -0800)
commit487c6ef81eb98d0a43cb08be91b1fcc9b4250626
treea242e195832bd92f83b6373e91bdb765178fb9ff
parentc5e9e8d48acdf3b863282af7f6f6931d39526245
net/mlx5: Fix memory leak on flow table creation error flow

When we create the ft object we also init rhltable in ft->fgs_hash.
So in error flow before kfree of ft we need to destroy that rhltable.

Fixes: 693c6883bbc4 ("net/mlx5: Add hash table for flow groups in flow table")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c