Re: [PATCH 3.11-stable] sh_vou: almost forever loop in sh_vou_try_fmt_vid_out()

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

 



On Thu, Oct 24, 2013 at 11:10:15PM +0900, Jonghwan Choi wrote:
> From: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> 
> This patch looks like it should be in the 3.11-stable tree, should we apply
> it?

Thanks, this seems to be applicable for older kernels as well (after a
rename: drivers/media/platform/sh_vou.c -> drivers/media/video/sh_vou.c).

I'm queuing it for the 3.5 kernel.

Cheers,
--
Luis

> 
> ------------------
> 
> From: "Dan Carpenter <dan.carpenter@xxxxxxxxxx>"
> 
> commit 47c32ec9392a1fc7dec9d7cfde084e1432fcee82 upstream
> 
> The "i < " part of the "i < ARRAY_SIZE()" condition was missing.
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> [g.liakhovetski@xxxxxx: remove unrelated superfluous braces]
> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@xxxxxx>
> Signed-off-by: Mauro Carvalho Chehab <m.chehab@xxxxxxxxxxx>
> Signed-off-by: Jonghwan Choi <jhbird.choi@xxxxxxxxxxx>
> ---
>  drivers/media/platform/sh_vou.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/platform/sh_vou.c b/drivers/media/platform/sh_vou.c
> index 7a9c5e9..4f30341 100644
> --- a/drivers/media/platform/sh_vou.c
> +++ b/drivers/media/platform/sh_vou.c
> @@ -776,7 +776,7 @@ static int sh_vou_try_fmt_vid_out(struct file *file, void *priv,
>  	v4l_bound_align_image(&pix->width, 0, VOU_MAX_IMAGE_WIDTH, 1,
>  			      &pix->height, 0, VOU_MAX_IMAGE_HEIGHT, 1, 0);
>  
> -	for (i = 0; ARRAY_SIZE(vou_fmt); i++)
> +	for (i = 0; i < ARRAY_SIZE(vou_fmt); i++)
>  		if (vou_fmt[i].pfmt == pix->pixelformat)
>  			return 0;
>  
> -- 
> 1.8.1.2
> 
> --
> To unsubscribe from this list: send the line "unsubscribe stable" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]