Commit a70705d
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: [email protected]
Fixes: b401200 ("[media] uvcvideo: Add support for control events")
Reported-by: Hans de Goede <[email protected]>
Closes: https://lore.kernel.org/linux-media/[email protected]/
Signed-off-by: Ricardo Ribalda <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>1 parent 5c79146 commit a70705d
1 file changed
+22
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2119 | 2119 | | |
2120 | 2120 | | |
2121 | 2121 | | |
2122 | | - | |
| 2122 | + | |
2123 | 2123 | | |
2124 | 2124 | | |
2125 | 2125 | | |
| |||
2148 | 2148 | | |
2149 | 2149 | | |
2150 | 2150 | | |
2151 | | - | |
2152 | | - | |
2153 | 2151 | | |
2154 | 2152 | | |
2155 | 2153 | | |
| |||
2165 | 2163 | | |
2166 | 2164 | | |
2167 | 2165 | | |
2168 | | - | |
| 2166 | + | |
2169 | 2167 | | |
2170 | 2168 | | |
2171 | | - | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
2172 | 2174 | | |
2173 | 2175 | | |
2174 | 2176 | | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
2175 | 2180 | | |
2176 | 2181 | | |
2177 | 2182 | | |
| |||
2202 | 2207 | | |
2203 | 2208 | | |
2204 | 2209 | | |
2205 | | - | |
| 2210 | + | |
| 2211 | + | |
2206 | 2212 | | |
2207 | 2213 | | |
2208 | 2214 | | |
| |||
2213 | 2219 | | |
2214 | 2220 | | |
2215 | 2221 | | |
2216 | | - | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
2217 | 2231 | | |
2218 | 2232 | | |
2219 | 2233 | | |
2220 | 2234 | | |
2221 | 2235 | | |
2222 | 2236 | | |
2223 | | - | |
2224 | | - | |
2225 | 2237 | | |
2226 | | - | |
| 2238 | + | |
2227 | 2239 | | |
2228 | 2240 | | |
2229 | 2241 | | |
| |||
0 commit comments