]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cec: always check all_device_types and features
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 18 Jul 2016 06:44:10 +0000 (03:44 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 19 Jul 2016 16:27:46 +0000 (13:27 -0300)
commit73155d4053db5d1fa4529c6dbd59ce1439dba5a8
treeeceecb22b1fc73fd1c05cc22aeb622ff5b525cad
parentc1b9279ba2e7d6380f9e8cb8e2b3ce6b6653f4dc
[media] cec: always check all_device_types and features

Even when the adapter is configured for CEC 1.4, we still check and
use the CEC 2.0 parts of struct cec_log_addrs. Although these aren't
used in CEC messages, the information contained in them is still of
use in the CEC framework itself, so keep this information.

Also zero the unused trailing features[] data and unused logical address
data so the contents isn't random data.

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