]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2022 16:57:53 +0000 (17:57 +0100)
commit12269b798877758ae896396a2a7140e2b8ceeb9b
treef327d8775c046b717761a5c19b746cebf9301869
parent8c042eb982b2c7c351d99a0ca32f7032c518ca34
media: cros-ec-cec: limit msg.len to CEC_MAX_MSG_SIZE

[ Upstream commit a6957f0b4d9e23243b9725e9f14cce92478db538 ]

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/cros-ec-cec/cros-ec-cec.c