OSDN Git Service

media: cec: cec_transmit_msg_fh: do sanity checks first
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 23 Apr 2019 12:37:39 +0000 (08:37 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 23 May 2019 09:30:47 +0000 (05:30 -0400)
commit63d171f85fb15247600bdd38b1dbf72bcba0dc8a
treef40868c055d189a0d6a0992c1e99928b69d5da35
parent00ccd263ee085c7428e2a1102c2f39e4a6927978
media: cec: cec_transmit_msg_fh: do sanity checks first

The code that fills in the CEC_MSG_CDC_MESSAGE physical address
is now done after the sanity checks. It also only does this if the
message length is >= 4 (i.e. there is room for the physical address).

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/cec/cec-adap.c