PM / devfreq: exynos4_bus: Fix missing mutex_unlock if opp_find_freq_floor fails
Subsystems (2)
PATCH 1/1 PM / devfreq: exynos4_bus: Fix missing mutex_unlock if opp_find_freq_floor fails
We need to call mutex_unlock() in the error path.
Signed-off-by Axel Lin <[email protected]>
--- drivers/devfreq/exynos4_bus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/devfreq/exynos4_bus.c +2 -1
@@ -974,7 +974,8 @@ static int exynos4_busfreq_pm_notifier_event(struct notifier_block *this,rcu_read_unlock ();dev_err (data->dev,"%s: unable to find a min freq\n" , __func__); -return PTR_ERR (opp); + err =PTR_ERR (opp); + goto unlock; } new_oppinfo.rate =opp_get_freq (opp); new_oppinfo.volt =opp_get_voltage (opp);
Signature · 1 line
1.7.9.5