Searched hist:"3 dd6b560dc5d59e7cb6dbda6e85dc9af7925fcf8" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/media/i2c/ |
H A D | tvp5150.c | diff 3dd6b560dc5d59e7cb6dbda6e85dc9af7925fcf8 Mon Feb 19 12:23:39 CST 2018 Mauro Carvalho Chehab <mchehab@s-opensource.com> media: Don't let tvp5150_get_vbi() go out of vbi_ram_default array
As pointed by Dan, possible values for bits[3:0] of te Line Mode Registers can range from 0x0 to 0xf, but the check logic allow values ranging from 0x0 to 0xe.
As static arrays are initialized with zero, using a value without an explicit initializer at the array won't cause any harm.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
|