Re: [PATCH v2] wifi: ath12k: clear dangling channel pointers on error paths
Baochen Qiang <[email protected]>
| Newsgroups | gmane.linux.kernel.wireless.general,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
On 8/11/2026 10:05 AM, Linkai Gong wrote: > On failure, ath12k_mac_setup_channels_rates() frees band channel > arrays but leaves the pointers set, or clears the wrong band after a > copy-paste typo (6 GHz free paired with a 2 GHz NULL). Clear the > matching sbands[].channels pointer after each kfree(). > > Compile tested only. > > Signed-off-by: Linkai Gong <gonglinkai-UOlijcLmZ/[email protected]> Reviewed-by: Baochen Qiang <[email protected]>