aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorWenwen Wang <[email protected]>2019-08-18 18:54:46 +0000
committerDoug Ledford <[email protected]>2019-08-20 17:44:45 +0000
commit2323d7baab2b18d87d9bc267452e387aa9f0060a (patch)
tree0b9297714a43ed975cbd4062ccbe5bfcb273a4ef /tools/perf/scripts/python/netdev-times.py
parentinfiniband: hfi1: fix a memory leak bug (diff)
downloadkernel-2323d7baab2b18d87d9bc267452e387aa9f0060a.tar.gz
kernel-2323d7baab2b18d87d9bc267452e387aa9f0060a.zip
infiniband: hfi1: fix memory leaks
In fault_opcodes_write(), 'data' is allocated through kcalloc(). However, it is not deallocated in the following execution if an error occurs, leading to memory leaks. To fix this issue, introduce the 'free_data' label to free 'data' before returning the error. Signed-off-by: Wenwen Wang <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Acked-by: Dennis Dalessandro <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions