[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMZdPi_-uH6dk8KcrPRzNGJjX6YjkoNsYM1EJKJu5BYzrhd8gg@mail.gmail.com>
Date: Thu, 7 Nov 2024 11:27:46 +0100
From: Loic Poulain <loic.poulain@...aro.org>
To: Barnabás Czémán <barnabas.czeman@...nlining.org>
Cc: Kalle Valo <kvalo@...nel.org>, "Bryan O'Donoghue" <bryan.odonoghue@...aro.org>,
Kalle Valo <quic_kvalo@...cinc.com>, wcn36xx@...ts.infradead.org,
linux-wireless@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] wifi: wcn36xx: fix channel survey memory allocation size
On Mon, 4 Nov 2024 at 21:00, Barnabás Czémán
<barnabas.czeman@...nlining.org> 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@...nlining.org>
Acked-by: Loic Poulain <loic.poulain@...aro.org>
Powered by blists - more mailing lists