Skip to content
Snippets Groups Projects
Commit 5751cdc0 authored by Wei Yongjun's avatar Wei Yongjun Committed by MyungJoo Ham
Browse files

PM / devfreq: fix missing unlock on error in exynos4_busfreq_pm_notifier_event()


Add the missing unlock before return from function
exynos4_busfreq_pm_notifier_event() in the error
handling case.

This issue introduced by commit 8fa938
(PM / devfreq: exynos4_bus: honor RCU lock usage)

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
[Resolved path conflicts by MyungJoo Ham]
Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
parent de9c7394
No related branches found
No related tags found
No related merge requests found
......@@ -974,6 +974,7 @@ 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__);
mutex_unlock(&data->lock);
return PTR_ERR(opp);
}
new_oppinfo.rate = opp_get_freq(opp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment