diff options
| author | Albert Esteve <aesteve@redhat.com> | 2026-09-14 15:05:19 +0200 |
|---|---|---|
| committer | Jeff Johnson <jeff.johnson@oss.qualcomm.com> | 2026-10-05 08:06:04 -0700 |
| commit | 129324b60343dec19d45dcf87736f129b18b95bb (patch) | |
| tree | 6137e0051e58f38427a40dfba37ad12fcf970a94 /drivers | |
| parent | 59411703660919197234fa0ec80ee1a5bcbe4276 (diff) | |
wifi: ath10k: clear QMI if failed during init
A failed ath10k_qmi_init() leaves a dangling pointer (ar_snoc->qmi) in the
cleanup path. Clear the pointer on the way out for hygiene and consistency
with deinit().
Signed-off-by: Albert Esteve <aesteve@redhat.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Link: https://patch.msgid.link/20260914-fix-ath10k-dangling-v1-1-15c5089682b1@redhat.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/net/wireless/ath/ath10k/qmi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/qmi.c b/drivers/net/wireless/ath/ath10k/qmi.c index 0d74548a5f34..08a64f737fb4 100644 --- a/drivers/net/wireless/ath/ath10k/qmi.c +++ b/drivers/net/wireless/ath/ath10k/qmi.c @@ -1128,6 +1128,7 @@ err_release_qmi_handle: err: kfree(qmi); + ar_snoc->qmi = NULL; return ret; } |
