]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cec: filter invalid messages
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 1 Nov 2016 12:48:22 +0000 (10:48 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 17:33:44 +0000 (15:33 -0200)
commitc31782f3c73022c1be64b770ad0b987f6f417319
tree5b841a5c2f56c35a56e64f216885fea209ffc52e
parent3fe141d743eae358c2ba1649dc0c7b3cf663ab26
[media] cec: filter invalid messages

As per the CEC specification:

- CEC messages with a too-small payload should be ignored.
- Broadcast messages that are only allowed as directed messages
  should be ignored.
- Directed messages that are only allowed as broadcast messages
  should be ignored.

Implement this in the core CEC framework.

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