[media] s5c73m3: Fix off-by-one valid range checking for fie->index
authorAxel Lin <axel.lin@ingics.com>
Tue, 30 Apr 2013 03:42:16 +0000 (00:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 21 May 2013 11:36:54 +0000 (08:36 -0300)
commitc6f89116c14144c18295d2a06294788c86fe9e6d
tree859da3bf4782ac53074bad5b936bd5ee9e9a8d4a
parent8410725333088643f49371396e727cc1e41ccfb5
[media] s5c73m3: Fix off-by-one valid range checking for fie->index

Current code uses fie->index as array subscript, thus the valid value range
is 0 ... ARRAY_SIZE(s5c73m3_intervals) - 1.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/s5c73m3/s5c73m3-core.c