[media] ivtv: avoid going past input/audio array
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 11 Nov 2015 11:27:42 +0000 (09:27 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 16 Nov 2015 09:38:04 +0000 (07:38 -0200)
commitd55ebd07b6c21a1c7e3e74f1b73b3b033cece2b5
tree9f8eecb71495c7150c64e0a1a213de9fb1f714f7
parent823873481b2a17ce5900899f8ef85118f8407b67
[media] ivtv: avoid going past input/audio array

As reported by smatch:
drivers/media/pci/ivtv/ivtv-driver.c:832 ivtv_init_struct2() error: buffer overflow 'itv->card->video_inputs' 6 <= 6

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/ivtv/ivtv-driver.c