[media] cec: fix wrong last_la determination
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 10 Jan 2017 11:44:54 +0000 (09:44 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 30 Jan 2017 13:42:31 +0000 (11:42 -0200)
commitf9f96fc10c09ca16e336854c08bc1563eed97985
tree0a9b6bf8e70129ebe08fa58b793fdd8eb3a30430
parent8015d6b83cadc8f9f94c7bc8430255090ddf43d4
[media] cec: fix wrong last_la determination

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>
drivers/media/cec/cec-adap.c