Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7444f53 authored by Govind Singh's avatar Govind Singh
Browse files

net: Fix regulator_put for wlan_vreg



wlan_vreg is not freed in cnss_sdio_release_resource, free
wlan_vreg in cnss_sdio_release_resource.

Change-Id: I0b82a4eaf532eb0131d192f9a59184e4ea587cc8
Signed-off-by: default avatarGovind Singh <govinds@codeaurora.org>
parent 9d17b246
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -298,7 +298,7 @@ static void cnss_sdio_release_resource(void)
	if (cnss_pdata->regulator.wlan_xtal)
		regulator_put(cnss_pdata->regulator.wlan_xtal);
	if (cnss_pdata->regulator.wlan_vreg)
		regulator_put(cnss_pdata->regulator.wlan_xtal);
		regulator_put(cnss_pdata->regulator.wlan_vreg);
	if (cnss_pdata->regulator.wlan_io)
		regulator_put(cnss_pdata->regulator.wlan_io);
}