[PATCH] wifi: ath12k: fix channel list double-free on error paths
Linkai Gong
gonglinkai at kylinos.cn
Mon Aug 10 19:05:49 PDT 2026
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
More information about the ath12k
mailing list