summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDinghao Liu <dinghao.liu@zju.edu.cn>2023-11-28 10:29:01 +0100
committerSaeed Mahameed <saeedm@nvidia.com>2024-01-24 09:15:38 +0100
commitaef855df7e1bbd5aa4484851561211500b22707e (patch)
tree94bce078464f52ceef50c44748695fb5233ddffc /include
parentnet/mlx5e: fix a double-free in arfs_create_groups (diff)
downloadlinux-aef855df7e1bbd5aa4484851561211500b22707e.tar.xz
linux-aef855df7e1bbd5aa4484851561211500b22707e.zip
net/mlx5e: fix a potential double-free in fs_any_create_groups
When kcalloc() for ft->g succeeds but kvzalloc() for in fails, fs_any_create_groups() will free ft->g. However, its caller fs_any_create_table() will free ft->g again through calling mlx5e_destroy_flow_table(), which will lead to a double-free. Fix this by setting ft->g to NULL in fs_any_create_groups(). Fixes: 0f575c20bf06 ("net/mlx5e: Introduce Flow Steering ANY API") Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions