Re: [PATCH -next] brcmfmac: Fix a double-free in brcmf_sdio_bus_reset

From: Kalle Valo
Date: Tue Jun 15 2021 - 06:37:56 EST


Tong Tiangen <tongtiangen@xxxxxxxxxx> wrote:

> brcmf_sdiod_remove has been called inside brcmf_sdiod_probe when fails,
> so there's no need to call another one. Otherwise, sdiodev->freezer
> would be double freed.
>
> Fixes: 7836102a750a ("brcmfmac: reset SDIO bus on a firmware crash")
> Signed-off-by: Tong Tiangen <tongtiangen@xxxxxxxxxx>
> Reviewed-by: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx>

Patch applied to wireless-drivers-next.git, thanks.

7ea7a1e05c7f brcmfmac: Fix a double-free in brcmf_sdio_bus_reset

--
https://patchwork.kernel.org/project/linux-wireless/patch/20210601100128.69561-1-tongtiangen@xxxxxxxxxx/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches