summaryrefslogtreecommitdiff
path: root/drivers/devfreq/exynos/exynos4_bus.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-02-22 04:33:50 +0000
committerJonghwa Lee <jonghwa3.lee@samsung.com>2014-05-15 18:59:11 +0900
commit6dddc36def431155405012f48badcd81b4d48fab (patch)
tree61d0f1e255bc7dce154bbd0bad736db3c551ef69 /drivers/devfreq/exynos/exynos4_bus.c
parente94b287efc0ef62ce72f6a83c71daaeef5fdc25d (diff)
downloadlinux-3.10-6dddc36def431155405012f48badcd81b4d48fab.tar.gz
linux-3.10-6dddc36def431155405012f48badcd81b4d48fab.tar.bz2
linux-3.10-6dddc36def431155405012f48badcd81b4d48fab.zip
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> Change-Id: I6fed109f21b18b458d7f0311961a85f5b2ba4756
Diffstat (limited to 'drivers/devfreq/exynos/exynos4_bus.c')
-rw-r--r--drivers/devfreq/exynos/exynos4_bus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/devfreq/exynos/exynos4_bus.c b/drivers/devfreq/exynos/exynos4_bus.c
index dc5b1153c6b..d3e9d9ab005 100644
--- a/drivers/devfreq/exynos/exynos4_bus.c
+++ b/drivers/devfreq/exynos/exynos4_bus.c
@@ -975,6 +975,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);