wifi: ath12k: Add missing qmi_txn_cancel() calls
authorJeff Johnson <quic_jjohnson@quicinc.com>
Thu, 11 Jan 2024 18:05:31 +0000 (10:05 -0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Sun, 14 Jan 2024 15:00:50 +0000 (17:00 +0200)
commit2e82b5f09a97f1b98b885470c81c1248bec103af
treef7fb487d60abe002ea8151dd13d2ea6c6696f816
parent59cf57ab3deea979ffc0a6f7c22f4331e59d32f0
wifi: ath12k: Add missing qmi_txn_cancel() calls

Per the QMI documentation "A client calling qmi_txn_init() must call
either qmi_txn_wait() or qmi_txn_cancel() to free up the allocated
resources."

Unfortunately, in most of the ath12k messaging functions, when
qmi_send_request() fails, the function returns without performing the
necessary cleanup. So update those functions to call qmi_txn_cancel()
when qmi_send_request() fails.

No functional changes, compile tested only.

Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240111-qmi-cleanup-v2-2-53343af953d5@quicinc.com
drivers/net/wireless/ath/ath12k/qmi.c