Commit b4767d99 authored by Hans Verkuil's avatar Hans Verkuil Committed by Lipeng Sang
Browse files

media: s5p_cec: limit msg.len to CEC_MAX_MSG_SIZE

stable inclusion
from stable-v5.10.154
commit 1609231f86760c1f6a429de7913dd795b9faa08c
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I64YCB

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1609231f86760c1f6a429de7913dd795b9faa08c



--------------------------------

[ Upstream commit 93f65ce0 ]

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: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarLipeng Sang <sanglipeng1@jd.com>
parent c5e29aa7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment