aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorJianglei Nie <[email protected]>2022-09-07 15:37:04 +0800
committerKalle Valo <[email protected]>2022-09-10 09:27:09 +0300
commit43e7c3505ec70db3d3c6458824d5fa40f62e3e7b (patch)
tree0f896ba1595e50b53e52b6d4c0bd2128b7bdd20f /tools/perf/scripts/python/syscall-counts-by-pid.py
parent876eb84882a8b2fc4036e735a2de52141aebb6a5 (diff)
wifi: ath11k: mhi: fix potential memory leak in ath11k_mhi_register()
mhi_alloc_controller() allocates a memory space for mhi_ctrl. When gets some error, mhi_ctrl should be freed with mhi_free_controller(). But when ath11k_mhi_read_addr_from_dt() fails, the function returns without calling mhi_free_controller(), which will lead to a memory leak. We can fix it by calling mhi_free_controller() when ath11k_mhi_read_addr_from_dt() fails. Signed-off-by: Jianglei Nie <[email protected]> Reviewed-by: Jeff Johnson <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions