media: sh_vou: almost forever loop in sh_vou_try_fmt_vid_out()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Aug 2013 09:54:44 +0000 (06:54 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2013 20:27:48 +0000 (12:27 -0800)
commit8212db5775902438ae8875e223738fc931325ce4
treef042dcaa906db42a70f6eef0b4a96d01b8ce552f
parenta5ca6f06feb5eafb05ac825b900923f06a2a6c1f
media: sh_vou: almost forever loop in sh_vou_try_fmt_vid_out()

commit 47c32ec9392a1fc7dec9d7cfde084e1432fcee82 upstream.

The "i < " part of the "i < ARRAY_SIZE()" condition was missing.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[g.liakhovetski@gmx.de: remove unrelated superfluous braces]
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/sh_vou.c