cec: initiator should be the same as the destination for, poll
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 11 Feb 2017 11:24:46 +0000 (09:24 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Dec 2017 21:01:54 +0000 (22:01 +0100)
commit959b8e0ba293fe0fddf6bbd5c9c874b7ab1feeb8
treedad383b55cfaab488e4302bafc740619e8a938d3
parent017a499be5746df215a664775b14e80c087bc941
cec: initiator should be the same as the destination for, poll

[ Upstream commit 42980da2eb7eb9695d8efc0c0ef145cbbb993b2c ]

Poll messages that are used to allocate a logical address should
use the same initiator as the destination. Instead, it expected that
the initiator was 0xf which is not according to the standard.

This also had consequences for the message checks in cec_transmit_msg_fh
that incorrectly rejected poll messages with the same initiator and
destination.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/cec/cec-adap.c