linux/drivers/devfreq
Lukasz Luba 8b50a79957 PM / devfreq: Unlock mutex and free devfreq struct in error path
The devfreq->lock is held for time of setup. Release the lock in the
error path, before jumping to the end of the function.

Change the goto destination which frees the allocated memory.

Cc: v5.9+ <stable@vger.kernel.org> # v5.9+
Fixes: 4dc3bab868 ("PM / devfreq: Add support delayed timer for polling mode")
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2021-04-08 13:14:45 +09:00
..
event PM / devfreq: exynos: Rename Exynos to lowercase 2020-01-06 10:50:09 +09:00
devfreq-event.c PM / devfreq: event: Change prototype of devfreq_event_get_edev_by_phandle function 2020-09-29 17:50:10 +09:00
devfreq.c PM / devfreq: Unlock mutex and free devfreq struct in error path 2021-04-08 13:14:45 +09:00
exynos-bus.c Merge branches 'pm-devfreq' and 'pm-tools' 2020-12-15 15:27:16 +01:00
governor_passive.c PM / devfreq: Add required OPPs support to passive governor 2021-02-04 16:48:16 +05:30
governor_performance.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
governor_powersave.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
governor_simpleondemand.c PM / devfreq: Add governor attribute flag for specifc sysfs nodes 2020-10-26 11:46:54 +09:00
governor_userspace.c PM / devfreq: Use constant name of userspace governor 2020-03-25 08:35:03 +09:00
governor.h PM / devfreq: Correct spelling in a comment 2021-01-05 10:04:25 +09:00
imx8m-ddrc.c PM / devfreq: imx8m-ddrc: Fix inconsistent IS_ERR and PTR_ERR 2019-12-31 03:09:57 +09:00
imx-bus.c PM / devfreq: imx-bus: Fix inconsistent IS_ERR and PTR_ERR 2020-05-28 18:02:40 +09:00
Kconfig PM / devfreq: tegra20: Deprecate in a favor of emc-stat based driver 2020-11-23 16:01:13 +09:00
Makefile PM / devfreq: tegra20: Deprecate in a favor of emc-stat based driver 2020-11-23 16:01:13 +09:00
rk3399_dmc.c PM / devfreq: rk3399_dmc: Remove unneeded semicolon 2021-02-02 16:17:27 +09:00
tegra30-devfreq.c devfreq: tegra30: Migrate to dev_pm_opp_set_opp() 2021-02-02 10:30:53 +05:30