]> git.baikalelectronics.ru Git - kernel.git/commit
media: uvcvideo: Fix bit overflow in uvc_probe_video
authorHangyu Hua <hbh25y@gmail.com>
Thu, 24 Mar 2022 09:13:08 +0000 (10:13 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 8 May 2022 05:09:12 +0000 (07:09 +0200)
commite209b2919deb5a0c159031efe142507bfb8a63c6
tree42e1b0c6a3a7e29d1ef43c1825ef03d36c41fce2
parent46c59d09654c67c948a7b6496fc9cfb2b4b622c4
media: uvcvideo: Fix bit overflow in uvc_probe_video

probe->dwMaxPayloadTransferSize is a 32bit value, but bandwidth is 16bit. This
may lead to a bit overflow.

Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/usb/uvc/uvc_video.c