Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1566350

Re: [PATCH] memory: tegra: Add a missing 'of_node_put()' call

From Thierry Reding <thierry.reding@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] memory: tegra: Add a missing 'of_node_put()' call
Date 2017-01-25 08:00 +0100
Message-ID <t3pIL-6NO-15@gated-at.bofh.it> (permalink)
References <sVO1z-1mY-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, Jan 04, 2017 at 08:13:24AM +0100, Christophe JAILLET wrote:
> If 'of_find_device_by_node()' fails, an 'of_node_put()' call is missing in
> the error handling path.
> Fix it by reordering the code.
> 
> While at it, remove some empty lines in a more or less similar construction
> a few lines below.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
>  drivers/memory/tegra/tegra124-emc.c | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)

Applied, thanks.

Thierry

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] memory: tegra: Add a missing 'of_node_put()' call Thierry Reding <thierry.reding@gmail.com> - 2017-01-25 08:00 +0100

csiph-web