[PATCH v2] wifi: ath12k: clear dangling channel pointers on error paths
Baochen Qiang
baochen.qiang at oss.qualcomm.com
Mon Aug 10 19:32:04 PDT 2026
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 at kylinos.cn>
Reviewed-by: Baochen Qiang <baochen.qiang at oss.qualcomm.com>
More information about the ath12k
mailing list