]> git.ipfire.org Git - thirdparty/kernel/stable.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 14:46:06 +0000 (15:46 +0100)
commit7ccb40f26cbefa1c6dfd3418bea54c9518cdbd8a
tree5478b21fe67e1e2c88b662300d027bb0f762d637
parent20ed01a7b9af6e6a3c33761eebbb710ea6dd49b7
media: s5p_cec: limit msg.len to CEC_MAX_MSG_SIZE

[ 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>
drivers/staging/media/s5p-cec/s5p_cec.c