2018-08-17 02:37:29

by zhong jiang

[permalink] [raw]
Subject: [PATCH] gpu: do not double put device node in zx_drm_probe

for_each_available_child_of_node will get and put the node properly,
the following of_node_put will lead to the double put. So just
remove it.

Signed-off-by: zhong jiang <[email protected]>
---
drivers/gpu/drm/zte/zx_drm_drv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/zte/zx_drm_drv.c b/drivers/gpu/drm/zte/zx_drm_drv.c
index 6f4205e8..d7b9870 100644
--- a/drivers/gpu/drm/zte/zx_drm_drv.c
+++ b/drivers/gpu/drm/zte/zx_drm_drv.c
@@ -161,10 +161,8 @@ static int zx_drm_probe(struct platform_device *pdev)
if (ret)
return ret;

- for_each_available_child_of_node(parent, child) {
+ for_each_available_child_of_node(parent, child)
component_match_add(dev, &match, compare_of, child);
- of_node_put(child);
- }

return component_master_add_with_match(dev, &zx_drm_master_ops, match);
}
--
1.7.12.4



2018-08-23 16:15:46

by zhong jiang

[permalink] [raw]
Subject: Re: [PATCH] gpu: do not double put device node in zx_drm_probe

Ping, Anyone has any objections a about the patch?

Best wishes,
zhong jiang
On 2018/8/17 10:24, zhong jiang wrote:
> for_each_available_child_of_node will get and put the node properly,
> the following of_node_put will lead to the double put. So just
> remove it.
>
> Signed-off-by: zhong jiang <[email protected]>
> ---
> drivers/gpu/drm/zte/zx_drm_drv.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/zte/zx_drm_drv.c b/drivers/gpu/drm/zte/zx_drm_drv.c
> index 6f4205e8..d7b9870 100644
> --- a/drivers/gpu/drm/zte/zx_drm_drv.c
> +++ b/drivers/gpu/drm/zte/zx_drm_drv.c
> @@ -161,10 +161,8 @@ static int zx_drm_probe(struct platform_device *pdev)
> if (ret)
> return ret;
>
> - for_each_available_child_of_node(parent, child) {
> + for_each_available_child_of_node(parent, child)
> component_match_add(dev, &match, compare_of, child);
> - of_node_put(child);
> - }
>
> return component_master_add_with_match(dev, &zx_drm_master_ops, match);
> }



2018-08-27 07:20:40

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH] gpu: do not double put device node in zx_drm_probe

On Fri, Aug 17, 2018 at 10:24:06AM +0800, zhong jiang wrote:
> for_each_available_child_of_node will get and put the node properly,
> the following of_node_put will lead to the double put. So just
> remove it.
>
> Signed-off-by: zhong jiang <[email protected]>

Acked-by: Shawn Guo <[email protected]>

2018-09-06 14:54:08

by zhong jiang

[permalink] [raw]
Subject: Re: [PATCH] gpu: do not double put device node in zx_drm_probe

+to maintainer.
On 2018/8/17 10:24, zhong jiang wrote:
> for_each_available_child_of_node will get and put the node properly,
> the following of_node_put will lead to the double put. So just
> remove it.
>
> Signed-off-by: zhong jiang <[email protected]>gg
> ---
> drivers/gpu/drm/zte/zx_drm_drv.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/zte/zx_drm_drv.c b/drivers/gpu/drm/zte/zx_drm_drv.c
> index 6f4205e8..d7b9870 100644
> --- a/drivers/gpu/drm/zte/zx_drm_drv.c
> +++ b/drivers/gpu/drm/zte/zx_drm_drv.c
> @@ -161,10 +161,8 @@ static int zx_drm_probe(struct platform_device *pdev)
> if (ret)
> return ret;
>
> - for_each_available_child_of_node(parent, child) {
> + for_each_available_child_of_node(parent, child)
> component_match_add(dev, &match, compare_of, child);
> - of_node_put(child);
> - }
>
> return component_master_add_with_match(dev, &zx_drm_master_ops, match);
> }



2018-09-18 15:02:37

by zhong jiang

[permalink] [raw]
Subject: Re: [PATCH] gpu: do not double put device node in zx_drm_probe

Hi, Greg

Can you pick up the patch?

Thanks,
zhong jiang

On 2018/8/17 10:24, zhong jiang wrote:
> for_each_available_child_of_node will get and put the node properly,
> the following of_node_put will lead to the double put. So just
> remove it.
>
> Signed-off-by: zhong jiang <[email protected]>
> ---
> drivers/gpu/drm/zte/zx_drm_drv.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/zte/zx_drm_drv.c b/drivers/gpu/drm/zte/zx_drm_drv.c
> index 6f4205e8..d7b9870 100644
> --- a/drivers/gpu/drm/zte/zx_drm_drv.c
> +++ b/drivers/gpu/drm/zte/zx_drm_drv.c
> @@ -161,10 +161,8 @@ static int zx_drm_probe(struct platform_device *pdev)
> if (ret)
> return ret;
>
> - for_each_available_child_of_node(parent, child) {
> + for_each_available_child_of_node(parent, child)
> component_match_add(dev, &match, compare_of, child);
> - of_node_put(child);
> - }
>
> return component_master_add_with_match(dev, &zx_drm_master_ops, match);
> }



2018-09-18 15:04:57

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH] gpu: do not double put device node in zx_drm_probe

On Tue, Sep 18, 2018 at 10:59:08PM +0800, zhong jiang wrote:
> Hi, Greg
>
> Can you pick up the patch?

Nope:
$ ./scripts/get_maintainer.pl --file drivers/gpu/drm/zte/zx_drm_drv.c
Shawn Guo <[email protected]> (maintainer:DRM DRIVERS FOR ZTE ZX)
David Airlie <[email protected]> (maintainer:DRM DRIVERS)
[email protected] (open list:DRM DRIVERS FOR ZTE ZX)
[email protected] (open list)

why would I take thi when all of those others are the correct
maintainers?

Also, you only posted this 1 day ago. Please relax and give people time
and a chance to review your patch. It is not instant.

thanks,

greg k-h

2018-09-18 15:20:13

by zhong jiang

[permalink] [raw]
Subject: Re: [PATCH] gpu: do not double put device node in zx_drm_probe

On 2018/9/18 23:02, Greg KH wrote:
> On Tue, Sep 18, 2018 at 10:59:08PM +0800, zhong jiang wrote:
>> Hi, Greg
>>
>> Can you pick up the patch?
> Nope:
> $ ./scripts/get_maintainer.pl --file drivers/gpu/drm/zte/zx_drm_drv.c
> Shawn Guo <[email protected]> (maintainer:DRM DRIVERS FOR ZTE ZX)
> David Airlie <[email protected]> (maintainer:DRM DRIVERS)
> [email protected] (open list:DRM DRIVERS FOR ZTE ZX)
> [email protected] (open list)
>
> why would I take thi when all of those others are the correct
> maintainers?
>
> Also, you only posted this 1 day ago. Please relax and give people time
> and a chance to review your patch. It is not instant.
No, I posted the patch a month ago. I have sent a ping. but It do not work. :-( .

Thanks,
zhong jiang
> thanks,
>
> greg k-h
>
> .
>



2018-09-18 15:20:38

by Daniel Vetter

[permalink] [raw]
Subject: Re: [PATCH] gpu: do not double put device node in zx_drm_probe

On Mon, Aug 27, 2018 at 9:18 AM, Shawn Guo <[email protected]> wrote:
> On Fri, Aug 17, 2018 at 10:24:06AM +0800, zhong jiang wrote:
>> for_each_available_child_of_node will get and put the node properly,
>> the following of_node_put will lead to the double put. So just
>> remove it.
>>
>> Signed-off-by: zhong jiang <[email protected]>
>
> Acked-by: Shawn Guo <[email protected]>

Shawn, I'm assuming you'll push this to drm-misc-next? You're the
maintainer with commit rights after all.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

2018-09-18 15:22:02

by Daniel Vetter

[permalink] [raw]
Subject: Re: [PATCH] gpu: do not double put device node in zx_drm_probe

On Tue, Sep 18, 2018 at 5:02 PM, Greg KH <[email protected]> wrote:
> On Tue, Sep 18, 2018 at 10:59:08PM +0800, zhong jiang wrote:
>> Hi, Greg
>>
>> Can you pick up the patch?
>
> Nope:
> $ ./scripts/get_maintainer.pl --file drivers/gpu/drm/zte/zx_drm_drv.c
> Shawn Guo <[email protected]> (maintainer:DRM DRIVERS FOR ZTE ZX)
> David Airlie <[email protected]> (maintainer:DRM DRIVERS)
> [email protected] (open list:DRM DRIVERS FOR ZTE ZX)
> [email protected] (open list)
>
> why would I take thi when all of those others are the correct
> maintainers?
>
> Also, you only posted this 1 day ago. Please relax and give people time
> and a chance to review your patch. It is not instant.

First submission was in August, acked by Shawn, but somehow they
forgot to actually push the patch out. I pinged Shawn.

Thanks, Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

2018-09-19 21:32:55

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH] gpu: do not double put device node in zx_drm_probe

On Tue, Sep 18, 2018 at 05:19:09PM +0200, Daniel Vetter wrote:
> On Mon, Aug 27, 2018 at 9:18 AM, Shawn Guo <[email protected]> wrote:
> > On Fri, Aug 17, 2018 at 10:24:06AM +0800, zhong jiang wrote:
> >> for_each_available_child_of_node will get and put the node properly,
> >> the following of_node_put will lead to the double put. So just
> >> remove it.
> >>
> >> Signed-off-by: zhong jiang <[email protected]>
> >
> > Acked-by: Shawn Guo <[email protected]>
>
> Shawn, I'm assuming you'll push this to drm-misc-next? You're the
> maintainer with commit rights after all.

Just pushed to drm-misc-next. Sorry for the delay.

Shawn