Re: [PATCH wireless-next] wifi: brcmfmac: Fix memory leak in brcmf_sdio_read_control()
Abdun Nihaal <[email protected]> Tue, 4 Aug 2026 10:58:26 +0530
| Newsgroups | org.kernel.vger.linux-wireless,dev.linux.lists.brcm80211,org.kernel.vger.stable |
|---|---|
| Message-ID | <b67xzhxq3c5s5v7tnwdjtmbfmye7mgvdbowhyr7g7h3xdkdrze@b3w5waih4oku> |
On Mon, Aug 03, 2026 at 11:35:06AM +0200, Arend van Spriel wrote: > From: Abdun Nihaal <[email protected]> > > 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. > > Cc: [email protected] > Fixes: dd43a01c5cdb ("brcmfmac: use dynamically allocated control frame buffer") > Signed-off-by: Abdun Nihaal <[email protected]> > [arend: rework as suggested by Johannes] > Signed-off-by: Arend van Spriel <[email protected]> Thank you for sending the reworked patch. Regards, Nihaal