aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2024-04-15 22:26:41 +0200
committerKalle Valo <[email protected]>2024-04-18 18:20:08 +0300
commit6ef5b4c9598c928b3e2c4c4b543c81331941f136 (patch)
tree24bc415a623198db8ee710ecca60cee7fd11a54a /tools/perf/scripts/python/libxed.py
parent43528ae9d9bfbf398dfd1cfedc8eecb953f6fde0 (diff)
wifi: ath11k: Fix error handling in ath11k_wmi_p2p_noa_event()
if (noa_descriptors > WMI_P2P_MAX_NOA_DESCRIPTORS), there is a mix of return and goto. In such a case, 'td' should be freed to avoid a memory leak. While at it, change ath11k_wmi_p2p_noa_event() to return void. '0' was returned in all cases, even in case of error and the only caller does not handle the return value. This is also more consistent with most of functions called from ath11k_wmi_tlv_op_rx(). Fixes: 2408379f15a1 ("wifi: ath11k: implement handling of P2P NoA event") Signed-off-by: Christophe JAILLET <[email protected]> Acked-by: Jeff Johnson <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://msgid.link/07f1fc75b2d5b4173ae1b7bb1da5be7f6fc608c8.1713212781.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions