Re: [PATCH v2] wifi: ath11k: Fix possible memory leak in ath11k_dp_srng_setup()

Rameshkumar Sundaram <[email protected]> Wed, 5 Aug 2026 15:21:35 +0530
Newsgroups org.kernel.vger.linux-wireless,dev.linux.lists.llvm,org.infradead.lists.ath11k,org.kernel.vger.linux-kernel,org.kernel.vger.stable
Message-ID <[email protected]>
On 8/1/2026 5:19 PM, Abdun Nihaal wrote:
> In ath11k_dp_srng_setup(), the memory allocated for
> 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: [email protected]
> Assisted-by: Claude:claude-sonnet-4-6
> Reviewed-by: Baochen Qiang <[email protected]>
> Signed-off-by: Abdun Nihaal <[email protected]>
Reviewed-by: Rameshkumar Sundaram <[email protected]>