]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: uvcvideo: Rollback non processed entities on error
authorRicardo Ribalda <ribalda@chromium.org>
Mon, 24 Feb 2025 10:34:55 +0000 (10:34 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 9 May 2025 13:29:12 +0000 (15:29 +0200)
commita70705d3c020d0d5c3ab6a5cc93e011ac35e7d48
tree25e4a201d32f6ea78f1ce1e82b597371dc71801c
parent5c791467aea6277430da5f089b9b6c2a9d8a4af7
media: uvcvideo: Rollback non processed entities on error

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: b4012002f3a3 ("[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>
drivers/media/usb/uvc/uvc_ctrl.c