diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2016-07-17 11:16:40 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-19 19:24:42 +0300 |
commit | 045344c3c1478f8d03a1a589d645fe10c3a23f77 (patch) | |
tree | 6f2ce55d7f9a9af8ea25dfe3771687d0db759c3c /include/media/cec.h | |
parent | 4eef404fd91543dc82be2bd05d3b29919ec6c0e6 (diff) | |
download | linux-045344c3c1478f8d03a1a589d645fe10c3a23f77.tar.xz |
[media] cec: zero unused msg part after msg->len
Ensure that the unused part of the msg array is zeroed. This is
required by CEC 2.0 when receiving shorter messages than expected.
In that case the remaining bytes are assumed to be 0.
There are no such CEC messages yet, but it is required to be future proof.
And since we're doing it for received messages, do it for transmitted
messages as well. It's unambiguous this way.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/media/cec.h')
0 files changed, 0 insertions, 0 deletions