aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJack Morgenstein <[email protected]>2020-01-15 10:50:50 +0200
committerJason Gunthorpe <[email protected]>2020-01-16 16:13:22 -0400
commiteaad647e5cc27f7b46a27f3b85b14c4c8a64bffa (patch)
treea9c0192b42c6e6f0304131fbf193f9aaee208225 /tools/perf/scripts/python/export-to-sqlite.py
parentd7fab916374c8f5488ca792c57ea8b72e8631213 (diff)
IB/mlx4: Fix memory leak in add_gid error flow
In procedure mlx4_ib_add_gid(), if the driver is unable to update the FW gid table, there is a memory leak in the driver's copy of the gid table: the gid entry's context buffer is not freed. If such an error occurs, free the entry's context buffer, and mark the entry as available (by setting its context pointer to NULL). Fixes: e26be1bfef81 ("IB/mlx4: Implement ib_device callbacks") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jack Morgenstein <[email protected]> Reviewed-by: Parav Pandit <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions