1
0
Fork 0
remarkable-linux/drivers/media/usb/cpia2
Dan Carpenter b6b70d7033 media: cpia2: Fix a couple off by one bugs
[ Upstream commit d5ac225c7d ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-19 08:42:54 +01:00
..
Kconfig
Makefile
cpia2.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02: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 2018-03-19 08:42:54 +01:00