linux-yocto/drivers/media/usb
Ricardo Ribalda 6ef497083d media: uvcvideo: Rollback non processed entities on error
commit a70705d3c0 upstream.

If we fail to commit an entity, we need to restore the
UVC_CTRL_DATA_BACKUP for the other uncommitted entities. Otherwise the
control cache and the device would be out of sync.

Cc: stable@kernel.org
Fixes: b4012002f3 ("[media] uvcvideo: Add support for control events")
Reported-by: Hans de Goede <hdegoede@redhat.com>
Closes: https://lore.kernel.org/linux-media/fe845e04-9fde-46ee-9763-a6f00867929a@redhat.com/
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Message-ID: <20250224-uvc-data-backup-v2-3-de993ed9823b@chromium.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-06 10:58:03 +02:00
..
airspy
as102
au0828
b2c2 media: flexcop-usb: fix sanity check of bNumEndpoints 2024-06-12 11:03:47 +02:00
cx231xx media: cx231xx: set device_caps for 417 2025-06-04 14:40:09 +02:00
dvb-usb media: cxusb: no longer judge rbuf when the write fails 2025-06-27 11:07:27 +01:00
dvb-usb-v2 media: lmedm04: Handle errors for lme2510_int_read 2025-02-21 13:49:17 +01:00
em28xx
go7007 media: go7007: fix a memleak in go7007_load_encoder 2024-03-26 18:20:51 -04:00
gspca media: gspca: Add error handling for stv06xx_read_sensor() 2025-06-27 11:07:27 +01:00
hackrf
hdpvr
msi2500
pvrusb2 media: pvrusb2: fix uaf in pvr2_context_set_notify 2024-03-26 18:20:51 -04:00
pwc
s2255 media: s2255: Use refcount_t instead of atomic_t for num_channels 2024-07-11 12:47:08 +02:00
siano
stk1160 media: stk1160: fix bounds checking in stk1160_copy_video() 2024-06-12 11:03:47 +02:00
ttusb-budget
ttusb-dec
usbtv media: usbtv: Remove useless locks in usbtv_video_free() 2024-10-17 15:21:33 +02:00
uvc media: uvcvideo: Rollback non processed entities on error 2025-07-06 10:58:03 +02:00
Kconfig
Makefile