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

From: Arend van Spriel
Date: Tue Jun 01 2021 - 07:38:08 EST


On 01-06-2021 12:01, Tong Tiangen 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")
Reviewed-by: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx>
Signed-off-by: Tong Tiangen <tongtiangen@xxxxxxxxxx>
---
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 1 -
1 file changed, 1 deletion(-)