Re: [PATCH] wifi: brcmfmac: Fix memory leak in brcmf_sdio_read_control()
From: Johannes Berg
Date: Sun Aug 02 2026 - 12:46:24 EST
On Sun, 2026-08-02 at 10:38 +0200, Arend van Spriel wrote:
> On Wed, 22 Jul 2026 16:37:12 +0530, Abdun Nihaal <nihaal@xxxxxxxxxxxxxx> wrote:
> > The memory allocated for buf is not freed in some of the error paths in
> > brcmf_sdio_read_control(). Fix that by adding vfree() calls.
> >
> > Fixes: dd43a01c5cdb ("brcmfmac: use dynamically allocated control frame buffer")
> > Cc: stable@xxxxxxxxxxxxxxx
> > Signed-off-by: Abdun Nihaal <nihaal@xxxxxxxxxxxxxx>
> > ---
> > Compile tested only. Issue found using static analysis.
> >
> > drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 3 +++
> > 1 file changed, 3 insertions(+)
>
> To be applied to wireless tree.
I'm going to put this into wireless-next, at this point (-rc6) this just
doesn't cut it, the commit message makes it sound purely theoretical.
johannes