Commit 56aa767
media: uvcvideo: Rollback non processed entities on error
commit a70705d 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: b401200 ("[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>1 parent f165d04 commit 56aa767
1 file changed
Lines changed: 26 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1801 | 1801 | | |
1802 | 1802 | | |
1803 | 1803 | | |
1804 | | - | |
| 1804 | + | |
1805 | 1805 | | |
1806 | 1806 | | |
1807 | 1807 | | |
| |||
1830 | 1830 | | |
1831 | 1831 | | |
1832 | 1832 | | |
1833 | | - | |
1834 | | - | |
1835 | 1833 | | |
1836 | 1834 | | |
1837 | 1835 | | |
| |||
1843 | 1841 | | |
1844 | 1842 | | |
1845 | 1843 | | |
1846 | | - | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
1847 | 1849 | | |
1848 | 1850 | | |
1849 | | - | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
1850 | 1856 | | |
1851 | 1857 | | |
1852 | | - | |
1853 | | - | |
1854 | | - | |
1855 | 1858 | | |
1856 | 1859 | | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
1857 | 1863 | | |
1858 | 1864 | | |
1859 | 1865 | | |
| |||
1884 | 1890 | | |
1885 | 1891 | | |
1886 | 1892 | | |
1887 | | - | |
| 1893 | + | |
| 1894 | + | |
1888 | 1895 | | |
1889 | 1896 | | |
1890 | 1897 | | |
| |||
1895 | 1902 | | |
1896 | 1903 | | |
1897 | 1904 | | |
1898 | | - | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
1899 | 1914 | | |
1900 | 1915 | | |
1901 | 1916 | | |
1902 | 1917 | | |
1903 | 1918 | | |
1904 | 1919 | | |
1905 | | - | |
1906 | | - | |
1907 | 1920 | | |
1908 | | - | |
| 1921 | + | |
1909 | 1922 | | |
1910 | 1923 | | |
1911 | 1924 | | |
| |||
0 commit comments