From: Philipp Zabel <p.zabel@pengutronix.de>
To: Tobias Jordan <Tobias.Jordan@elektrobit.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Cc: sil2review@lists.osadl.org
Subject: Re: [PATCH] gpu: ipu-v3: prg: fix device node leak in ipu_prg_lookup_by_phandle
Date: Mon, 19 Feb 2018 15:15:04 +0100 [thread overview]
Message-ID: <1519049704.3408.17.camel@pengutronix.de> (raw)
In-Reply-To: <20180215143530.e3qxat3rxcudqcsl@agrajag.zerfleddert.de>
Hi Tobias,
On Thu, 2018-02-15 at 15:35 +0100, Tobias Jordan wrote:
> Before returning, call of_node_put() for the device node returned by
> of_parse_phandle().
>
> Fixes: ea9c260514c1 ("gpu: ipu-v3: add driver for Prefetch Resolve Gasket")
> Signed-off-by: Tobias Jordan <Tobias.Jordan@elektrobit.com>
> ---
> drivers/gpu/ipu-v3/ipu-prg.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/ipu-v3/ipu-prg.c b/drivers/gpu/ipu-v3/ipu-prg.c
> index 067365c733c6..97b99500153d 100644
> --- a/drivers/gpu/ipu-v3/ipu-prg.c
> +++ b/drivers/gpu/ipu-v3/ipu-prg.c
> @@ -102,11 +102,14 @@ ipu_prg_lookup_by_phandle(struct device *dev, const char *name, int ipu_id)
> mutex_unlock(&ipu_prg_list_mutex);
> device_link_add(dev, prg->dev, DL_FLAG_AUTOREMOVE);
> prg->id = ipu_id;
> + of_node_put(prg_node);
> return prg;
> }
> }
> mutex_unlock(&ipu_prg_list_mutex);
>
> + of_node_put(prg_node);
> +
> return NULL;
> }
>
Applied both to imx-drm/next, thank you.
regards
Philipp
prev parent reply other threads:[~2018-02-19 14:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-15 14:35 Tobias Jordan
2018-02-19 14:15 ` Philipp Zabel [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=1519049704.3408.17.camel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=Tobias.Jordan@elektrobit.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sil2review@lists.osadl.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
all inboxes | Powered by JetHome®