]> git.baikalelectronics.ru Git - kernel.git/commit
media: cec: set ev rather than v with CEC_PIN_EVENT_FL_DROPPED bit
authorColin Ian King <colin.king@canonical.com>
Wed, 18 Apr 2018 15:26:19 +0000 (11:26 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 20 Apr 2018 12:37:35 +0000 (08:37 -0400)
commit08c41d20eecff0b2b884d64135e185795e753505
treef58beeb7f8f81fcb591c77986539665b23032d9a
parent1d7a628dea794d48be50117c6e4e85262ee6ca5f
media: cec: set ev rather than v with CEC_PIN_EVENT_FL_DROPPED bit

Setting v with the CEC_PIN_EVENT_FL_DROPPED is incorrect, instead
ev should be set with this bit. Fix this.

Detected by CoverityScan, CID#1467974 ("Extra high-order bits")

Fixes: 7ffc9adb57d9 ("media: cec: improve CEC pin event handling")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-pin.c