Commit d9fecd0
media: uvcvideo: Only save async fh if success
Now we keep a reference to the active fh for any call to uvc_ctrl_set,
regardless if it is an actual set or if it is a just a try or if the
device refused the operation.
We should only keep the file handle if the device actually accepted
applying the operation.
Cc: stable@vger.kernel.org
Fixes: e5225c8 ("media: uvcvideo: Send a control event when a Control Change interrupt arrives")
Suggested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20241203-uvc-fix-async-v6-1-26c867231118@chromium.org
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>1 parent 4c2367d commit d9fecd0
1 file changed
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1811 | 1811 | | |
1812 | 1812 | | |
1813 | 1813 | | |
1814 | | - | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
1815 | 1818 | | |
1816 | 1819 | | |
1817 | 1820 | | |
| |||
1859 | 1862 | | |
1860 | 1863 | | |
1861 | 1864 | | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
1862 | 1869 | | |
1863 | 1870 | | |
1864 | 1871 | | |
| |||
1895 | 1902 | | |
1896 | 1903 | | |
1897 | 1904 | | |
1898 | | - | |
1899 | | - | |
| 1905 | + | |
| 1906 | + | |
1900 | 1907 | | |
1901 | 1908 | | |
1902 | 1909 | | |
| |||
2046 | 2053 | | |
2047 | 2054 | | |
2048 | 2055 | | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
2052 | 2056 | | |
2053 | 2057 | | |
2054 | 2058 | | |
| |||
2377 | 2381 | | |
2378 | 2382 | | |
2379 | 2383 | | |
2380 | | - | |
| 2384 | + | |
2381 | 2385 | | |
2382 | 2386 | | |
2383 | 2387 | | |
| |||
0 commit comments