diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-02-22 08:33:50 +0400 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2013-06-03 15:20:29 +0400 |
commit | 5751cdc0c9337b4f5fdd05f45ca3483e7cd7a708 (patch) | |
tree | c79b6c0a1066b46faf5f2941248017b9bd775bb1 /drivers | |
parent | de9c739435b47e7d39e448b2cc4c8154cabc9e5a (diff) | |
download | linux-5751cdc0c9337b4f5fdd05f45ca3483e7cd7a708.tar.xz |
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
[Resolved path conflicts by MyungJoo Ham]
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/devfreq/exynos/exynos4_bus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/devfreq/exynos/exynos4_bus.c b/drivers/devfreq/exynos/exynos4_bus.c index 3f37f3b3f268..c5f86d8caca3 100644 --- a/drivers/devfreq/exynos/exynos4_bus.c +++ b/drivers/devfreq/exynos/exynos4_bus.c @@ -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); |