]> git.karo-electronics.de Git - linux-beck.git/commitdiff
PM / devfreq: fix missing unlock on error in exynos4_busfreq_pm_notifier_event()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 22 Feb 2013 04:33:50 +0000 (12:33 +0800)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 3 Jun 2013 11:20:29 +0000 (20:20 +0900)
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>
drivers/devfreq/exynos/exynos4_bus.c

index 3f37f3b3f2689bd76438d6ac5e079ce26b433642..c5f86d8caca34c6a7a3ea2341da5c242ddf41c83 100644 (file)
@@ -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);