summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorDinghao Liu <dinghao.liu@zju.edu.cn>2023-11-28 12:40:53 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2023-12-14 04:22:16 +0300
commite75efc6466ae289e599fb12a5a86545dff245c65 (patch)
tree96be3283396b53b79981da29ddccb58523872d92 /tools/perf/scripts/python/task-analyzer.py
parent8f5100da56b3980276234e812ce98d8f075194cd (diff)
downloadlinux-e75efc6466ae289e599fb12a5a86545dff245c65.tar.xz
net/mlx5e: fix a potential double-free in fs_udp_create_groups
When kcalloc() for ft->g succeeds but kvzalloc() for in fails, fs_udp_create_groups() will free ft->g. However, its caller fs_udp_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_udp_create_groups(). Fixes: 1c80bd684388 ("net/mlx5e: Introduce Flow Steering UDP 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 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions