]> git.baikalelectronics.ru Git - kernel.git/commit
media: cros-ec-cec: limit msg.len to CEC_MAX_MSG_SIZE
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 24 Aug 2022 07:06:19 +0000 (09:06 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 06:46:16 +0000 (08:46 +0200)
commita6957f0b4d9e23243b9725e9f14cce92478db538
tree86bc5771f031897b9991301f475258808e7464b4
parent895974060e44cd437b3bd8d4b27d34fd754e51c3
media: cros-ec-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/cros-ec/cros-ec-cec.c