linux/drivers/media/platform/coda
Dan Carpenter 88ca3af44b [media] coda: improve safety in coda_register_device()
The "i" variable is used as an offset into both the dev->vfd[] and the
dev->devtype->vdevs[] arrays.  The second array is smaller so we should
use that as a limit instead of ARRAY_SIZE(dev->vfd).  Also the original
check was off by one.

We should use a format string as well in case the ->name has any funny
characters and also to stop static checkers from complaining.

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@osg.samsung.com>
2015-01-27 10:15:07 -02:00
..
coda_regs.h [media] coda: add JPEG register definitions for CODA7541 2014-10-28 15:01:49 -02:00
coda-bit.c [media] coda: drop JPEG buffers not framed by SOI and EOI markers 2014-10-28 15:41:07 -02:00
coda-common.c [media] coda: improve safety in coda_register_device() 2015-01-27 10:15:07 -02:00
coda-h264.c [media] coda: include header for memcpy 2014-08-21 15:25:23 -05:00
coda-jpeg.c [media] coda: drop JPEG buffers not framed by SOI and EOI markers 2014-10-28 15:41:07 -02:00
coda.h [media] coda: drop JPEG buffers not framed by SOI and EOI markers 2014-10-28 15:41:07 -02:00
Makefile [media] coda: add CODA7541 JPEG support 2014-10-28 15:03:16 -02:00