]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2022 16:57:52 +0000 (17:57 +0100)
commit8c042eb982b2c7c351d99a0ca32f7032c518ca34
treed01fb6e3d711750d55f8f0a60626e88a4ff24429
parentbdace7746df0c0496103410f35d942e4b7b2758a
media: s5p_cec: limit msg.len to CEC_MAX_MSG_SIZE

[ Upstream commit 895974060e44cd437b3bd8d4b27d34fd754e51c3 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/s5p-cec/s5p_cec.c