public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Chuhong Yuan <hslester96@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
	Ilkka Myllyperkio <ilkka.myllyperkio@sofica.fi>,
	"Ivan T . Ivanov" <iivanov@mm-sol.com>,
	Vimarsh Zutshi <vimarsh.zutshi@gmail.com>,
	Stanimir Varbanov <svarbanov@mm-sol.com>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	Sakari Ailus <sakari.ailus@iki.fi>
Subject: Re: [PATCH v2] media: omap3isp: Add missed v4l2_ctrl_handler_free() for preview_init_entities()
Date: Thu, 4 Jun 2020 12:33:21 +0300	[thread overview]
Message-ID: <20200604093321.GE5829@pendragon.ideasonboard.com> (raw)
In-Reply-To: <20200603164122.2101162-1-hslester96@gmail.com>

Hi Chuhong,

(CC'ing Sakari Ailus)

Thank you for the patch.

On Thu, Jun 04, 2020 at 12:41:22AM +0800, Chuhong Yuan wrote:
> preview_init_entities() does not call v4l2_ctrl_handler_free() when
> it fails.
> Add the missed function to fix it.
> 
> Fixes: de1135d44f4f ("[media] omap3isp: CCDC, preview engine and resizer]")

There's an extra ']' at the end. Apart from that,

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Sakari, could you take this patch ?

> Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
> ---
> Changes in v2:
>   - Fix the typo.
> 
>  drivers/media/platform/omap3isp/isppreview.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/media/platform/omap3isp/isppreview.c b/drivers/media/platform/omap3isp/isppreview.c
> index 4dbdf3180d10..607b7685c982 100644
> --- a/drivers/media/platform/omap3isp/isppreview.c
> +++ b/drivers/media/platform/omap3isp/isppreview.c
> @@ -2287,7 +2287,7 @@ static int preview_init_entities(struct isp_prev_device *prev)
>  	me->ops = &preview_media_ops;
>  	ret = media_entity_pads_init(me, PREV_PADS_NUM, pads);
>  	if (ret < 0)
> -		return ret;
> +		goto error_handler_free;
>  
>  	preview_init_formats(sd, NULL);
>  
> @@ -2320,6 +2320,8 @@ static int preview_init_entities(struct isp_prev_device *prev)
>  	omap3isp_video_cleanup(&prev->video_in);
>  error_video_in:
>  	media_entity_cleanup(&prev->subdev.entity);
> +error_handler_free:
> +	v4l2_ctrl_handler_free(&prev->ctrls);
>  	return ret;
>  }
>  

-- 
Regards,

Laurent Pinchart

  reply	other threads:[~2020-06-04  9:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03 16:41 [PATCH v2] media: omap3isp: Add missed v4l2_ctrl_handler_free() for preview_init_entities() Chuhong Yuan
2020-06-04  9:33 ` Laurent Pinchart [this message]
2020-06-04  9:50   ` Sakari Ailus

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=20200604093321.GE5829@pendragon.ideasonboard.com \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=hslester96@gmail.com \
    --cc=iivanov@mm-sol.com \
    --cc=ilkka.myllyperkio@sofica.fi \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=sakari.ailus@iki.fi \
    --cc=svarbanov@mm-sol.com \
    --cc=vimarsh.zutshi@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox