Thread (3 messages) read the whole thread 3 messages, 3 authors, 2021-08-10

Re: [PATCH v2] media: atomisp: Fix error handling in probe

From: Sakari Ailus <sakari.ailus@linux.intel.com>
Date: 2021-08-10 20:50:51
Also in: linux-staging, lkml

On Tue, Aug 10, 2021 at 07:29:43PM +0300, Evgeny Novikov wrote:
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).

Signed-off-by: Evgeny Novikov <redacted>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>

-- 
Sakari Ailus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help