We need to call mutex_unlock() in the error path.

Signed-off-by: Axel Lin <axel....@ingics.com>
---
 drivers/devfreq/exynos4_bus.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/devfreq/exynos4_bus.c b/drivers/devfreq/exynos4_bus.c
index 1deee09..54b9615 100644
--- a/drivers/devfreq/exynos4_bus.c
+++ b/drivers/devfreq/exynos4_bus.c
@@ -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);
-- 
1.7.9.5



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to