linux/drivers/media/usb
Jinjie Ruan d2842dec57 media: gspca: ov534-ov772x: Fix off-by-one error in set_frame_rate()
In set_frame_rate(), select a rate in rate_0 or rate_1 by checking
sd->frame_rate >= r->fps in a loop, but the loop condition terminates when
the index reaches zero, which fails to check the last elememt in rate_0 or
rate_1.

Check for >= 0 so that the last one in rate_0 or rate_1 is also checked.

Fixes: 189d92af70 ("V4L/DVB (13422): gspca - ov534: ov772x changes from Richard Kaswy.")
Cc: stable@vger.kernel.org
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2024-11-07 09:05:57 +01:00
..
airspy media: usb: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:56 +01:00
as102 media: as102: avoid GFP_ATOMIC 2024-04-29 12:07:00 +01:00
au0828 media: usb: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:56 +01:00
b2c2 media: b2c2: flexcop-usb: fix flexcop_usb_memory_req 2024-06-24 11:05:07 +02:00
cx231xx media: cx231xx: Remove some deadcode 2024-10-28 15:35:56 +01:00
dvb-usb media: usb: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:56 +01:00
dvb-usb-v2 media: IR remote control for AVerMedia TD310 2024-04-29 14:53:50 +01:00
em28xx media: usb: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:56 +01:00
go7007 media: usb: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:56 +01:00
gspca media: gspca: ov534-ov772x: Fix off-by-one error in set_frame_rate() 2024-11-07 09:05:57 +01:00
hackrf media: usb: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:56 +01:00
hdpvr media: hdpvr: fix error value returns in hdpvr_read 2022-06-27 09:02:50 +01:00
msi2500 media: usb: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:56 +01:00
pvrusb2 media: pvrusb2: Use kmemdup_array instead of kmemdup for multiple allocation 2024-10-12 16:28:24 +02:00
pwc media: usb: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:56 +01:00
s2255 media: usb: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:56 +01:00
siano media: usb: siano: Fix allocation of urbs 2024-04-16 00:02:53 +02:00
stk1160 media: usb: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:56 +01:00
ttusb-budget
ttusb-dec media: Convert from tasklet to BH workqueue 2024-06-21 08:57:09 +02:00
usbtv media: usb: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:56 +01:00
uvc media: usb: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:56 +01:00
Kconfig media: tm6000: deprecate this driver 2022-08-29 16:43:00 +02:00
Makefile media: tm6000: deprecate this driver 2022-08-29 16:43:00 +02:00