Dan Carpenter d5ac225c7d media: cpia2: Fix a couple off by one bugs
The cam->buffers[] array has cam->num_frames elements so the > needs to
be changed to >= to avoid going beyond the end of the array.  The
->buffers[] array is allocated in cpia2_allocate_buffers() if you want
to confirm.

Fixes: ab33d5071de7 ("V4L/DVB (3376): Add cpia2 camera support")

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-12-08 11:12:53 -05:00
..
2017-11-15 20:30:12 -08:00
2017-11-15 20:30:12 -08:00
2017-12-08 10:11:00 -05:00
2017-11-15 20:30:12 -08:00
2017-11-15 20:30:12 -08:00
2017-11-15 20:30:12 -08:00
2017-11-15 20:30:12 -08:00
2017-11-15 20:30:12 -08:00
2017-11-27 14:49:18 -05:00
2017-11-15 13:46:33 -08:00