From: Paul Cercueil <paul@crapouillou.net>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
od@zcrc.me
Subject: Re: [PATCH v2 1/2] drm/ingenic: Fix leak of device_node pointer
Date: Mon, 31 Aug 2020 00:55:46 +0200 [thread overview]
Message-ID: <YOFWFQ.M1IUN63RB1ZA1@crapouillou.net> (raw)
In-Reply-To: <20200829210727.GE796939@ravnborg.org>
Hi Sam,
Le sam. 29 août 2020 à 23:07, Sam Ravnborg <sam@ravnborg.org> a
écrit :
> On Thu, Aug 27, 2020 at 01:44:03PM +0200, Paul Cercueil wrote:
>> of_graph_get_remote_node() requires of_node_put() to be called on
>> the
>> device_node pointer when it's no more in use.
>>
>> Fixes: fc1acf317b01 ("drm/ingenic: Add support for the IPU")
>> Signed-off-by: Paul Cercueil <paul@crapouillou.net>
> Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Thanks. Both patches pushed to drm-misc-fixes.
Cheers,
-Paul
>> ---
>> drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
>> b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
>> index ada990a7f911..c1bcb93aed2d 100644
>> --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
>> +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c
>> @@ -978,6 +978,7 @@ static int ingenic_drm_probe(struct
>> platform_device *pdev)
>> }
>>
>> drm_of_component_match_add(dev, &match, compare_of, np);
>> + of_node_put(np);
>>
>> return component_master_add_with_match(dev, &ingenic_master_ops,
>> match);
>> }
>> --
>> 2.28.0
prev parent reply other threads:[~2020-08-30 22:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-27 11:44 Paul Cercueil
2020-08-27 11:44 ` [PATCH v2 2/2] drm/ingenic: Fix driver not probing when IPU port is missing Paul Cercueil
2020-08-29 21:08 ` Sam Ravnborg
2020-08-31 0:21 ` Ezequiel Garcia
2020-08-31 0:47 ` Paul Cercueil
2020-08-29 21:07 ` [PATCH v2 1/2] drm/ingenic: Fix leak of device_node pointer Sam Ravnborg
2020-08-30 22:55 ` Paul Cercueil [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YOFWFQ.M1IUN63RB1ZA1@crapouillou.net \
--to=paul@crapouillou.net \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=od@zcrc.me \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome