summaryrefslogtreecommitdiff
path: root/drivers/media/pci/zoran
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-04-28 10:35:13 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-04-30 13:36:15 -0300
commit09290cc885937cab3b2d60a6d48fe3d2d3e04061 (patch)
tree093b749c6979576f9f38e67da7c71e7944e834da /drivers/media/pci/zoran
parent1cb3b79532a3012fa4b20c8ac344e48a92b5b4d3 (diff)
[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 That happens because nof_inputs and nof_audio_inputs can be initialized as IVTV_CARD_MAX_VIDEO_INPUTS, instead of IVTV_CARD_MAX_VIDEO_INPUTS - 1. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci/zoran')
0 files changed, 0 insertions, 0 deletions