Re: [PATCH v3 0/2] wifi: ath11k/ath12k: release QMI handles on late init failures

From: Baochen Qiang

Date: Sun Jul 19 2026 - 22:25:30 EST




On 7/18/2026 3:40 PM, Guangshuo Li wrote:
> This series fixes QMI handle leaks in the late initialization failure
> paths of ath11k and ath12k.
>
> Both drivers initialize the QMI handle before allocating the QMI event
> workqueue and registering the service lookup. If either of these later
> steps fails, the initialized QMI handle is not released.
>
> Patch 1 fixes the leak in ath11k.
>
> Patch 2 fixes the leak in ath12k and sets ab->qmi.ab only after QMI
> service initialization completes successfully.
>
> v3:
> - Split the ath11k and ath12k changes into separate patches, as
> requested by Jeff Johnson.
>
> v2:
> - Set ath12k ab->qmi.ab only after QMI service initialization succeeds,
> as suggested by Baochen Qiang.
> - Fix the same late initialization QMI handle leak in ath11k, as
> suggested by Vasanthakumar Thiagarajan.
> - Drop the Reviewed-by tag due to the code changes.
>
> Guangshuo Li (2):
> wifi: ath11k: release QMI handle on late init failures
> wifi: ath12k: release QMI handle on late init failures
>
> drivers/net/wireless/ath/ath11k/qmi.c | 10 ++++++++--
> drivers/net/wireless/ath/ath12k/qmi.c | 13 ++++++++++---
> 2 files changed, 18 insertions(+), 5 deletions(-)
>

Reviewed-by: Baochen Qiang <baochen.qiang@xxxxxxxxxxxxxxxx>