Repository navigation
Commit cc62c74
media: allegro: add missed checks in allegro_open()
allegro_open() misses checks for v4l2_m2m_ctx_init() and results of
v4l2_ctrl_new* calls.
Add checks and error handlers to fix the problems.
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>1 parent 6b212c0 commit cc62c74
1 file changed
Lines changed: 20 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2270 | 2270 | | |
2271 | 2271 | | |
2272 | 2272 | | |
| 2273 | + | |
2273 | 2274 | | |
2274 | 2275 | | |
2275 | 2276 | | |
2276 | 2277 | | |
2277 | 2278 | | |
2278 | | - | |
2279 | | - | |
2280 | | - | |
2281 | | - | |
2282 | 2279 | | |
2283 | 2280 | | |
2284 | 2281 | | |
| |||
2328 | 2325 | | |
2329 | 2326 | | |
2330 | 2327 | | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
2331 | 2333 | | |
2332 | 2334 | | |
2333 | 2335 | | |
| |||
2341 | 2343 | | |
2342 | 2344 | | |
2343 | 2345 | | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
2344 | 2355 | | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
2345 | 2361 | | |
2346 | 2362 | | |
2347 | 2363 | | |
| |||
0 commit comments