Re: [PATCH] wifi: ath12k: fix channel list double-free on error paths

From: Linkai Gong

Date: Mon Aug 10 2026 - 22:06:01 EST


On Mon, Aug 10, 2026 at 03:07:25PM +0530, Baochen Qiang wrote:
> So this is actually a dangling pointer
> issue, not a reachable double-free — nothing frees the failing radio's pointers a second
> time. Please reword the message to something like "error paths leave dangling pointers + a
> copy-paste typo; harden by consistently nulling after kfree()."

Thanks. You are right, I misread the cleanup loop.

Will reword the commit message in v2. Code change stays the same.

Thanks,
Linkai