]> git.karo-electronics.de Git - linux-beck.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)
commit3074fe4a7da5775bcf31675d6d9e2687c434fef2
tree5b841a5c2f56c35a56e64f216885fea209ffc52e
parentadc0c622783978ab0c740af77f98fc8f65c87d66
[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