]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 6 Dec 2022 13:45:38 +0000 (14:45 +0100)
commit1d3e5831756d73e5202826ee9b7689321bed4ac2
tree3e543e35ab802da163c3c2862a08b9333acaeefd
parent7c20162767786ccd9b19bb9cdb555e5deff284b1
media: s5p_cec: limit msg.len to CEC_MAX_MSG_SIZE

BugLink: https://bugs.launchpad.net/bugs/1998843
[ Upstream commit 93f65ce036863893c164ca410938e0968964b26c ]

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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/media/cec/platform/s5p/s5p_cec.c