Re: [PATCH] wifi: ath12k: fix channel list double-free on error paths
Linkai Gong <[email protected]>
| Newsgroups | org.infradead.lists.ath12k,org.kernel.vger.linux-kernel,org.kernel.vger.linux-wireless |
|---|---|
| Message-ID | <[email protected]> |
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