]> 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)
commita90149b9171c6f71624dfe8a049a9d70613be3b8
treef58beeb7f8f81fcb591c77986539665b23032d9a
parent03e8ec5a1b4da2e35a6fe05f97b92c26efe2c84a
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: bf0ffb6c18f3 ("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