]> 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)
commit08a84ebd6cf2675720cb30072ad0dc70f10625a9
tree0e19efc98b92ffdf4655877e03a9bfbc3225fcb6
parentb2533d4b7b407d49c8f26ed6cd7389c95109be09
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