On Mon, 4 Nov 2024 at 21:00, Barnabás Czémán <barnabas.czeman@xxxxxxxxxxxxxx> wrote: > > KASAN reported a memory allocation issue in wcn->chan_survey > due to incorrect size calculation. > This commit uses kcalloc to allocate memory for wcn->chan_survey, > ensuring proper initialization and preventing the use of uninitialized > values when there are no frames on the channel. > > Fixes: 29696e0aa413 ("wcn36xx: Track SNR and RSSI for each RX frame") > Signed-off-by: Barnabás Czémán <barnabas.czeman@xxxxxxxxxxxxxx> Acked-by: Loic Poulain <loic.poulain@xxxxxxxxxx>