[media] cec: add sanity check for msg->len
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 12 Jul 2016 14:10:41 +0000 (11:10 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Jul 2016 10:58:12 +0000 (07:58 -0300)
commit52d802d65b56a399aa67a9d3f26f232116d3e256
treed09f3a743b5ea319a5bda38bc849c04d26ef05bc
parent0385443fec6b56b4b22f1940ab8607a074a5c17a
[media] cec: add sanity check for msg->len

Check (and warn) if the msg->len is too long or if it is 0.

Should never happen, but just in case...

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/cec/cec-adap.c