]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cec-funcs.h: add length checks
authorHans Verkuil <hansverk@cisco.com>
Wed, 6 Jul 2016 08:49:26 +0000 (05:49 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 21:34:42 +0000 (18:34 -0300)
commit63d606948bf5cc96775d2c602a9300acc1a666a1
tree08356944be5b10d11a30eae971ae365bdba79c57
parentad71b72f30dc39142d9c2974809f8c23f407e822
[media] cec-funcs.h: add length checks

Add msg->len sanity checks to fix static checker warning:

include/linux/cec-funcs.h:1154 cec_ops_set_osd_string()
warn: setting length 'msg->len - 3' to negative one

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
include/linux/cec-funcs.h