linux/drivers/media/usb/cpia2
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: ab33d5071d ("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
..
cpia2_core.c [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
cpia2_registers.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cpia2_usb.c media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
cpia2_v4l.c media: cpia2: Fix a couple off by one bugs 2017-12-08 11:12:53 -05:00
cpia2.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
Kconfig
Makefile