diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-11 21:13:54 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-11 21:16:55 +0200 |
commit | 7612cf97ec8533b361529fc864508d1caaf47a87 (patch) | |
tree | 6316f46dfd932e72fe717d762c785d1e6d7899ba /drivers/media/i2c | |
parent | [media] c8sectpfe: Allow compiling it with COMPILE_TEST (diff) | |
download | linux-7612cf97ec8533b361529fc864508d1caaf47a87.tar.xz linux-7612cf97ec8533b361529fc864508d1caaf47a87.zip |
[media] c8sectpfe: don't go past channel_data array
As reported by smatch:
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:365 find_channel() error: buffer overflow 'fei->channel_data' 8 <= 63
It seems that a cut-and-paste type of error occurred here:
the channel_data array size is C8SECTPFE_MAX_TSIN_CHAN, and not
C8SECTPFE_MAXCHANNEL.
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/i2c')
0 files changed, 0 insertions, 0 deletions