]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cec: fix wrong last_la determination
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 10 Jan 2017 11:44:54 +0000 (09:44 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:41:53 +0000 (06:41 +0200)
commitd934fe02ba176b5e88d8b67d603cd94fc930f3ce
tree5f156424f16cd8fa4ffc8637bf4456735ba61200
parent62614714e30a963ff325d7b5547b24d650153817
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