ov5640: Avoid array overrun on invalid size
authorSergio Aguirre <saaguirre@ti.com>
Tue, 30 Aug 2011 14:52:25 +0000 (09:52 -0500)
committerSergio Aguirre <saaguirre@ti.com>
Tue, 30 Aug 2011 18:56:23 +0000 (13:56 -0500)
commit175f53f23a93ab5458c9f29cff54c3c0b0fea384
treee1355e87154235ac6f2461f972f6a46fc1de1a32
parent57afd65c275914b23cc48c5e0671c33b9c012255
ov5640: Avoid array overrun on invalid size

This should protect from getting an invalid index if
the options aren't found.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
drivers/media/video/ov5640.c