cec: fix wrong last_la determination
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 10 Jan 2017 11:44:54 +0000 (09:44 -0200)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:58:17 +0000 (02:58 +0000)
commitd77dcfc3e2ab61b96bf51c54c65cb5d2a28c32e7
treee0d17e5b34f9f4af3fe540991b52a191b60917db
parent640704e9db0b95586666f0132b357e4acfebd2e0
cec: fix wrong last_la determination

[ Upstream commit f9f96fc10c09ca16e336854c08bc1563eed97985 ]

Due to an incorrect condition the last_la used for the initial attempt at
claiming a logical address could be wrong.

The last_la wasn't converted to a mask when ANDing with type2mask, so that
test was broken.

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