diff options
author | Aya Levin <ayal@nvidia.com> | 2023-01-08 13:53:02 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-01-10 09:08:35 +0300 |
commit | 3099d2e62f9061ed57798e68e285d35837be686f (patch) | |
tree | ba172b28499968f93747d29c21c19f84b20180b6 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | c09502d54dc109530ccb9a8910ab286d0745f119 (diff) | |
download | linux-3099d2e62f9061ed57798e68e285d35837be686f.tar.xz |
net/mlx5e: Fix memory leak on updating vport counters
When updating statistics driver queries the vport's counters. On fail,
add error path releasing the allocated buffer avoiding memory leak.
Fixes: 64b68e369649 ("net/mlx5: Refactor and expand rep vport stat group")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions