mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
[media] tvp5150: don't go past decoder->input_ent array
drivers/media/i2c/tvp5150.c:1394 tvp5150_parse_dt() warn: buffer overflow 'decoder->input_ent' 3 <= 3 Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
8e9a8b1212
commit
60ad768933
1 changed files with 1 additions and 1 deletions
|
|
@ -1386,7 +1386,7 @@ static int tvp5150_parse_dt(struct tvp5150 *decoder, struct device_node *np)
|
|||
goto err_connector;
|
||||
}
|
||||
|
||||
if (input_type > TVP5150_INPUT_NUM) {
|
||||
if (input_type >= TVP5150_INPUT_NUM) {
|
||||
ret = -EINVAL;
|
||||
goto err_connector;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue