media: tc358743: limit msg.len to CEC_MAX_MSG_SIZE
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 24 Aug 2022 07:00:24 +0000 (09:00 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 30 Aug 2022 05:37:24 +0000 (07:37 +0200)
commit3028fb90f5b972ef9b9e68e75a8372b8f9a8e312
tree22725baf87ffa05b50930268c15b7f72e62a24cf
parent05c480f4d0ba438e6d37a1660d81cc7eb670e26b
media: tc358743: limit msg.len to CEC_MAX_MSG_SIZE

I expect that the hardware will have limited this to 16, but just in
case it hasn't, check for this corner case.

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