diff options
author | Ma Ke <[email protected]> | 2023-09-30 07:54:47 +0300 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2023-10-02 19:02:34 +0300 |
commit | 47c27aa7ded4b8ead19b3487cc42a6185b762903 (patch) | |
tree | 8a6b468ebb09fc1b2e3f05a65212d0f7bc810d57 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | aa75cc029e053627743fba2cde8a73519abe8421 (diff) |
wifi: ath12k: mhi: fix potential memory leak in ath12k_mhi_register()
mhi_alloc_controller() allocates a memory space for mhi_ctrl. When some
errors occur, mhi_ctrl should be freed by mhi_free_controller() and set
ab_pci->mhi_ctrl = NULL.
We can fix it by calling mhi_free_controller() when the failure happens
and set ab_pci->mhi_ctrl = NULL in all of the places where we call
mhi_free_controller().
Signed-off-by: Ma Ke <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions