* [PATCH] OMAP:clock: missing list_del for clk_notifier_unregister
2009-03-11 16:40 ` Woodruff, Richard
@ 2009-03-11 17:59 ` Nishanth Menon
0 siblings, 0 replies; 4+ messages in thread
From: Nishanth Menon @ 2009-03-11 17:59 UTC (permalink / raw)
To: Woodruff, Richard, ameya.palande
Cc: Menon, Nishanth, linux-omap@vger.kernel.org, ext Paul Walmsley,
Nayak, Rajendra, Gupta, Ramesh
>From b30537e692ac7e72858479327935b16813ea3f56 Mon Sep 17 00:00:00 2001
From: Nishanth Menon <nm@ti.com>
Date: Wed, 11 Mar 2009 11:29:11 -0500
Subject: [PATCH] OMAP:clock: missing list_del for clk_notifier_unregister
Apologies on the spam.. looks like my git-send-email needs a bit more
tweaking :(.. sending from gmail..
clk_notifier_unregister should clean the list before
freeing clock notifier, else clk_notifier_list is
filled with dangling pointers
Issue seen while repetative loading/unloading of bridgedriver
Ref: http://marc.info/?t=123678326300002&r=1&w=2
Signed-off-by: Nishanth Menon <nm@ti.com>
---
arch/arm/plat-omap/clock.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c
index c8d9e96..523d1b0 100644
--- a/arch/arm/plat-omap/clock.c
+++ b/arch/arm/plat-omap/clock.c
@@ -725,8 +725,11 @@ int clk_notifier_unregister(struct clk *clk, struct
notifier_block *nb)
* XXX ugh, layering violation. there should be some
* support in the notifier code for this.
*/
- if (!cn->notifier_head.head)
+ if (!cn->notifier_head.head) {
+ /* Free up my clock node too */
+ list_del(&cn->node);
kfree(cn);
+ }
} else {
r = -ENOENT;
--
1.5.4.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] OMAP:clock: missing list_del for clk_notifier_unregister
[not found] <1236790153-9324-1-git-send-email-nm@ti.com>
@ 2009-03-12 7:30 ` Paul Walmsley
2009-03-12 7:33 ` Menon, Nishanth
0 siblings, 1 reply; 4+ messages in thread
From: Paul Walmsley @ 2009-03-12 7:30 UTC (permalink / raw)
To: Nishanth Menon
Cc: linux-omap, Richard Woodruff, Rajendra Nayak, Ramesh Gupta,
Palande Ameya
Hi,
On Wed, 11 Mar 2009, Nishanth Menon wrote:
> clk_notifier_unregister should clean the list before
> freeing clock notifier, else clk_notifier_list is
> filled with dangling pointers
>
> Issue seen while repetative loading/unloading of bridgedriver
>
> Ref: http://marc.info/?t=123678326300002&r=1&w=2
>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
> arch/arm/plat-omap/clock.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c
> index c8d9e96..523d1b0 100644
> --- a/arch/arm/plat-omap/clock.c
> +++ b/arch/arm/plat-omap/clock.c
> @@ -725,8 +725,11 @@ int clk_notifier_unregister(struct clk *clk, struct notifier_block *nb)
> * XXX ugh, layering violation. there should be some
> * support in the notifier code for this.
> */
> - if (!cn->notifier_head.head)
> + if (!cn->notifier_head.head) {
> + /* Free up my clock node too */
> + list_del(&cn->node);
> kfree(cn);
> + }
>
> } else {
> r = -ENOENT;
> --
> 1.5.4.3
>
Thanks, this looks good.
Just to clarify, this is currently against the PM branch. There's a new
version of the clock notifier patch coming out soon against l-o; will roll
this fix in.
- Paul
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] OMAP:clock: missing list_del for clk_notifier_unregister
2009-03-12 7:30 ` [PATCH] OMAP:clock: missing list_del for clk_notifier_unregister Paul Walmsley
@ 2009-03-12 7:33 ` Menon, Nishanth
2009-03-12 14:22 ` Kevin Hilman
0 siblings, 1 reply; 4+ messages in thread
From: Menon, Nishanth @ 2009-03-12 7:33 UTC (permalink / raw)
To: Paul Walmsley
Cc: linux-omap@vger.kernel.org, Woodruff, Richard, Nayak, Rajendra,
Gupta, Ramesh, Palande Ameya
> -----Original Message-----
> From: Paul Walmsley [mailto:paul@pwsan.com]
> Sent: Thursday, March 12, 2009 9:31 AM
> To: Menon, Nishanth
> Cc: linux-omap@vger.kernel.org; Woodruff, Richard; Nayak, Rajendra; Gupta,
> Ramesh; Palande Ameya
> Subject: Re: [PATCH] OMAP:clock: missing list_del for
> clk_notifier_unregister
> Just to clarify, this is currently against the PM branch. There's a new
Yes. This is against the PM branch
> version of the clock notifier patch coming out soon against l-o; will roll
> this fix in.
>
Thanks.
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] OMAP:clock: missing list_del for clk_notifier_unregister
2009-03-12 7:33 ` Menon, Nishanth
@ 2009-03-12 14:22 ` Kevin Hilman
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Hilman @ 2009-03-12 14:22 UTC (permalink / raw)
To: Menon, Nishanth
Cc: Paul Walmsley, linux-omap@vger.kernel.org, Woodruff, Richard,
Nayak, Rajendra, Gupta, Ramesh, Palande Ameya
"Menon, Nishanth" <nm@ti.com> writes:
>> -----Original Message-----
>> From: Paul Walmsley [mailto:paul@pwsan.com]
>> Sent: Thursday, March 12, 2009 9:31 AM
>> To: Menon, Nishanth
>> Cc: linux-omap@vger.kernel.org; Woodruff, Richard; Nayak, Rajendra; Gupta,
>> Ramesh; Palande Ameya
>> Subject: Re: [PATCH] OMAP:clock: missing list_del for
>> clk_notifier_unregister
>
>> Just to clarify, this is currently against the PM branch. There's a new
>
> Yes. This is against the PM branch
>
OK, I'll add this to PM branch...
>> version of the clock notifier patch coming out soon against l-o; will roll
>> this fix in.
And then pull in the new version when it appears.
Kevin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-03-12 14:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1236790153-9324-1-git-send-email-nm@ti.com>
2009-03-12 7:30 ` [PATCH] OMAP:clock: missing list_del for clk_notifier_unregister Paul Walmsley
2009-03-12 7:33 ` Menon, Nishanth
2009-03-12 14:22 ` Kevin Hilman
2009-03-11 14:51 DSPBRIDGE+BRIDGE_DVFS: Crashes on multiple reload Menon, Nishanth
2009-03-11 15:27 ` Woodruff, Richard
2009-03-11 16:32 ` Menon, Nishanth
2009-03-11 16:40 ` Woodruff, Richard
2009-03-11 17:59 ` [PATCH] OMAP:clock: missing list_del for clk_notifier_unregister Nishanth Menon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox