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

Rameshkumar Sundaram <[email protected]>
Newsgroups dev.linux.lists.llvm,org.infradead.lists.ath11k,org.kernel.vger.linux-kernel,org.kernel.vger.linux-wireless,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]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.