]> git.baikalelectronics.ru Git - kernel.git/commit
media: gspca: Limit frame size to sizeimage.
authorChad Fraleigh <chadf@triularity.org>
Sun, 29 Aug 2021 23:51:27 +0000 (01:51 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:07:56 +0000 (10:07 +0200)
commita1e7997eb320b7efb28d6124ff40e74588e7b554
tree0e19efc98b92ffdf4655877e03a9bfbc3225fcb6
parent6d781970287788b9e5f7f2cab0ffc578cbd1fdfb
media: gspca: Limit frame size to sizeimage.

Limit frame size to what userland code expects. This can happen when
cameras, such as Kensington VideoCAM, use fixed sized transfer packets
which includes trailing junk in the final packet.

Signed-off-by: Chad Fraleigh <chadf@triularity.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/gspca/gspca.c