diff options
| author | Evgeny Novikov <[email protected]> | 2021-08-10 18:29:43 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-09-30 10:07:43 +0200 |
| commit | e16f5e39acd6d10cc63ae39bc0a77188ed828f22 (patch) | |
| tree | e31d0edee9e7b2c5a19b758f197230a93f6aac08 /tools/perf/scripts/python/flamegraph.py | |
| parent | bbe54b1a75a397b62dd528100cfb2ffe558d92ee (diff) | |
media: atomisp: Fix error handling in probe
There were several issues with handling errors in lm3554_probe():
- Probe did not set the error code when v4l2_ctrl_handler_init() failed.
- It intermixed gotos for handling errors of v4l2_ctrl_handler_init()
and media_entity_pads_init().
- It did not set the error code for failures of v4l2_ctrl_new_custom().
- Probe did not free resources in case of failures of
atomisp_register_i2c_module().
The patch fixes all these issues.
Found by Linux Driver Verification project (linuxtesting.org).
Link: https://lore.kernel.org/linux-media/[email protected]
Signed-off-by: Evgeny Novikov <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions