From: Stephen Boyd <sboyd@kernel.org>
To: Nishka Dasgupta <nishkadg.linux@gmail.com>,
linux-clk@vger.kernel.org, linux-omap@vger.kernel.org,
mturquette@baylibre.com, t-kristo@ti.com
Cc: Nishka Dasgupta <nishkadg.linux@gmail.com>
Subject: Re: [PATCH] clk: ti: dm814x: Add of_node_put() to prevent memory leak
Date: Wed, 07 Aug 2019 15:34:29 -0700 [thread overview]
Message-ID: <20190807223430.3D803214C6@mail.kernel.org> (raw)
In-Reply-To: <20190804163328.6693-1-nishkadg.linux@gmail.com>
Quoting Nishka Dasgupta (2019-08-04 09:33:28)
> In function dm814x_adpll_early_init, variable np takes the value
> returned by of_find_node_by_name, which gets a node but does not put it.
> If np is not put before return, it may cause a memory leak. Hence put np
> before return.
> Issue found with Coccinelle.
>
> Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
> ---
Applied to clk-next
prev parent reply other threads:[~2019-08-07 22:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-04 16:33 [PATCH] clk: ti: dm814x: Add of_node_put() to prevent memory leak Nishka Dasgupta
2019-08-07 22:34 ` Stephen Boyd [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=20190807223430.3D803214C6@mail.kernel.org \
--to=sboyd@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=nishkadg.linux@gmail.com \
--cc=t-kristo@ti.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.