Re: [PATCH v2] wifi: ath11k: Fix possible memory leak in ath11k_dp_srng_setup()
From: Rameshkumar Sundaram
Date: Wed Aug 05 2026 - 05:52:20 EST
On 8/1/2026 5:19 PM, Abdun Nihaal wrote:
In ath11k_dp_srng_setup(), the memory allocated forReviewed-by: Rameshkumar Sundaram <rameshkumar.sundaram@xxxxxxxxxxxxxxxx>
ring->vaddr_unaligned is not freed in the error paths that follow.
Fix that by calling ath11k_dp_srng_cleanup() in those error paths.
Compile tested only. Issue found using a prototype static analysis tool
built on the LLVM compiler infrastructure.
Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
Cc: stable@xxxxxxxxxxxxxxx
Assisted-by: Claude:claude-sonnet-4-6
Reviewed-by: Baochen Qiang <baochen.qiang@xxxxxxxxxxxxxxxx>
Signed-off-by: Abdun Nihaal <nihaal@xxxxxxxxxxxxxx>