media: s5p_cec: limit msg.len to CEC_MAX_MSG_SIZE
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 24 Aug 2022 07:02:42 +0000 (09:02 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 06:44:55 +0000 (08:44 +0200)
commit93f65ce036863893c164ca410938e0968964b26c
tree39bbc18c41d9cff20903908e93eda3c404399245
parentc53e3a049f35978a150526671587fd46b1ae7ca1
media: s5p_cec: 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/cec/platform/s5p/s5p_cec.c