All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benoit Parrot <bparrot@ti.com>
To: Peter Chen <peter.chen@nxp.com>
Cc: <mchehab@kernel.org>, <linux-media@vger.kernel.org>
Subject: Re: [PATCH 1/1] media: platform: ti-vpe: call of_node_put on non-null pointer
Date: Thu, 28 Jul 2016 15:46:16 -0500	[thread overview]
Message-ID: <20160728204616.GE1806@ti.com> (raw)
In-Reply-To: <1468575186-24961-1-git-send-email-peter.chen@nxp.com>

Peter Chen <peter.chen@nxp.com> wrote on Fri [2016-Jul-15 17:33:06 +0800]:
> It should call of_node_put on non-null poiner.

Good catch, thanks.

Acked-by: Benoit Parrot <bparrot@ti.com>

> 
> Cc: linux-media@vger.kernel.org
> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
> Cc: Benoit Parrot <bparrot@ti.com>
> Signed-off-by: Peter Chen <peter.chen@nxp.com>
> ---
>  drivers/media/platform/ti-vpe/cal.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/media/platform/ti-vpe/cal.c b/drivers/media/platform/ti-vpe/cal.c
> index 82001e6..00c3e97 100644
> --- a/drivers/media/platform/ti-vpe/cal.c
> +++ b/drivers/media/platform/ti-vpe/cal.c
> @@ -1761,13 +1761,13 @@ static int of_cal_create_instance(struct cal_ctx *ctx, int inst)
>  	}
>  
>  cleanup_exit:
> -	if (!remote_ep)
> +	if (remote_ep)
>  		of_node_put(remote_ep);
> -	if (!sensor_node)
> +	if (sensor_node)
>  		of_node_put(sensor_node);
> -	if (!ep_node)
> +	if (ep_node)
>  		of_node_put(ep_node);
> -	if (!port)
> +	if (port)
>  		of_node_put(port);
>  
>  	return ret;
> -- 
> 1.9.1
> 

      reply	other threads:[~2016-07-28 20:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-15  9:33 [PATCH 1/1] media: platform: ti-vpe: call of_node_put on non-null pointer Peter Chen
2016-07-28 20:46 ` Benoit Parrot [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=20160728204616.GE1806@ti.com \
    --to=bparrot@ti.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=peter.chen@nxp.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.