[media] s3c-camif: forever loop in camif_hw_set_source_format()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Aug 2013 08:41:47 +0000 (05:41 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 24 Aug 2013 07:53:58 +0000 (04:53 -0300)
commitd345a5e59b0af5919f4d7f2a0d4c8dcae657e9d1
treefa6778c9ab6a73dddf5d8b614a7604455e905656
parent5c47776a2d6e36f09c6162196155bd59e70edbfb
[media] s3c-camif: forever loop in camif_hw_set_source_format()

Because "i" is unsigned then "i-- >= 0" is always true.  If we don't
find what we are looking for then we loop forever.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/s3c-camif/camif-regs.c