]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit767d5952d15ba61b07f88bac1e7df2dc353bb138
tree0a9b6bf8e70129ebe08fa58b793fdd8eb3a30430
parentb9e62e0ce40f9ee6ae42e52c6dc8a64ef77af6cb
[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