aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorWenwen Wang <[email protected]>2019-08-18 20:23:01 +0000
committerDoug Ledford <[email protected]>2019-08-20 17:44:45 +0000
commit5c1baaa82cea2c815a5180ded402a7cd455d1810 (patch)
treea549a0855c24e5f40643479dffddd5244de431aa /tools/perf/scripts/python/sctop.py
parentRDMA/cma: fix null-ptr-deref Read in cma_cleanup (diff)
downloadkernel-5c1baaa82cea2c815a5180ded402a7cd455d1810.tar.gz
kernel-5c1baaa82cea2c815a5180ded402a7cd455d1810.zip
IB/mlx4: Fix memory leaks
In mlx4_ib_alloc_pv_bufs(), 'tun_qp->tx_ring' is allocated through kcalloc(). However, it is not always deallocated in the following execution if an error occurs, leading to memory leaks. To fix this issue, free 'tun_qp->tx_ring' whenever an error occurs. Signed-off-by: Wenwen Wang <[email protected]> Acked-by: Leon Romanovsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions