summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Esteve <aesteve@redhat.com>2026-09-14 15:05:19 +0200
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>2026-10-05 08:06:04 -0700
commit129324b60343dec19d45dcf87736f129b18b95bb (patch)
tree6137e0051e58f38427a40dfba37ad12fcf970a94
parent59411703660919197234fa0ec80ee1a5bcbe4276 (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>
-rw-r--r--drivers/net/wireless/ath/ath10k/qmi.c1
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;
}