Re: [PATCH] omap3isp: Fix buffer flags handling when querying buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 10, 2013 at 02:53:39AM +0100, Laurent Pinchart wrote:
> A missing break resulted in all done buffers being flagged with
> V4L2_BUF_FLAG_QUEUED. Fix it.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
> ---
>  drivers/media/platform/omap3isp/ispqueue.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/media/platform/omap3isp/ispqueue.c b/drivers/media/platform/omap3isp/ispqueue.c
> index e15f013..5f0f8fa 100644
> --- a/drivers/media/platform/omap3isp/ispqueue.c
> +++ b/drivers/media/platform/omap3isp/ispqueue.c
> @@ -553,8 +553,10 @@ static void isp_video_buffer_query(struct isp_video_buffer *buf,
>  	switch (buf->state) {
>  	case ISP_BUF_STATE_ERROR:
>  		vbuf->flags |= V4L2_BUF_FLAG_ERROR;
> +		/* Fallthrough */
>  	case ISP_BUF_STATE_DONE:
>  		vbuf->flags |= V4L2_BUF_FLAG_DONE;
> +		break;
>  	case ISP_BUF_STATE_QUEUED:
>  	case ISP_BUF_STATE_ACTIVE:
>  		vbuf->flags |= V4L2_BUF_FLAG_QUEUED;

Oh, how is it possible this bug has passed through the review? :-) Nice fix!

Acked-by: Sakari Ailus <sakari.ailus@xxxxxx>

-- 
Cheers,

Sakari Ailus
e-mail: sakari.ailus@xxxxxx	XMPP: sailus@xxxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux