* [PATCH] PM / devfreq: fix missing unlock on error in exynos4_busfreq_pm_notifier_event()
@ 2013-02-22 4:33 Wei Yongjun
2013-02-22 4:49 ` Nishanth Menon
0 siblings, 1 reply; 3+ messages in thread
From: Wei Yongjun @ 2013-02-22 4:33 UTC (permalink / raw)
To: myungjoo.ham, kyungmin.park, nm; +Cc: yongjun_wei, linux-kernel
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
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>
---
drivers/devfreq/exynos4_bus.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/devfreq/exynos4_bus.c b/drivers/devfreq/exynos4_bus.c
index 46d94e9..6208a68 100644
--- a/drivers/devfreq/exynos4_bus.c
+++ b/drivers/devfreq/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);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] PM / devfreq: fix missing unlock on error in exynos4_busfreq_pm_notifier_event()
2013-02-22 4:33 [PATCH] PM / devfreq: fix missing unlock on error in exynos4_busfreq_pm_notifier_event() Wei Yongjun
@ 2013-02-22 4:49 ` Nishanth Menon
0 siblings, 0 replies; 3+ messages in thread
From: Nishanth Menon @ 2013-02-22 4:49 UTC (permalink / raw)
To: Wei Yongjun; +Cc: myungjoo.ham, kyungmin.park, yongjun_wei, linux-kernel, rjw
On 12:33-20130222, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> 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>
> ---
> drivers/devfreq/exynos4_bus.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/devfreq/exynos4_bus.c b/drivers/devfreq/exynos4_bus.c
> index 46d94e9..6208a68 100644
> --- a/drivers/devfreq/exynos4_bus.c
> +++ b/drivers/devfreq/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);
>
>
Arrgh.. Thanks for catching this :( My bad.
Fix looks good to me. upto MyungJoo.
MyungJoo, Rafael,
btw, adding linux-pm@vger.kernel.org to MAINTAINERS for devfreq might
be a nice idea to have right audience.
--
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] PM / devfreq: fix missing unlock on error in exynos4_busfreq_pm_notifier_event()
2013-02-22 6:33 MyungJoo Ham
@ 2013-02-22 12:41 ` Rafael J. Wysocki
0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2013-02-22 12:41 UTC (permalink / raw)
To: myungjoo.ham
Cc: Nishanth Menon, Wei Yongjun, 박경민,
yongjun_wei, linux-kernel
On Friday, February 22, 2013 06:33:58 AM MyungJoo Ham wrote:
> > On 12:33-20130222, Wei Yongjun wrote:
> > > From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> > >
> > > 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>
> > Arrgh.. Thanks for catching this :( My bad.
> >
> > Fix looks good to me. upto MyungJoo.
>
> Applied to devfreq repository.
> I'll send pull request to Rafael soon along with other patches.
>
> >
> > MyungJoo, Rafael,
> > btw, adding linux-pm@vger.kernel.org to MAINTAINERS for devfreq might
> > be a nice idea to have right audience.
>
> It appears that replacing the current mailing list address with linux-pm is
> appropriate. If no one objects, I'll post the suggestion later.
Sure, please do.
Thanks,
Rafael
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-22 12:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-22 4:33 [PATCH] PM / devfreq: fix missing unlock on error in exynos4_busfreq_pm_notifier_event() Wei Yongjun
2013-02-22 4:49 ` Nishanth Menon
2013-02-22 6:33 MyungJoo Ham
2013-02-22 12:41 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®