Files
linux/drivers
Evgeny Novikov 309ea2248d media: atomisp: Fix error handling in probe
[ Upstream commit e16f5e39ac ]

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/20210810162943.19852-1-novikov@ispras.ru
Signed-off-by: Evgeny Novikov <novikov@ispras.ru>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-18 14:03:54 +01:00
..
2021-11-18 14:03:46 +01:00
2021-07-20 16:05:42 +02:00
2021-11-18 14:03:42 +01:00
2021-03-04 11:38:21 +01:00
2021-07-14 16:55:53 +02:00
2021-11-18 14:03:42 +01:00
2021-11-18 14:03:51 +01:00
2021-09-26 14:09:02 +02:00
2021-11-18 14:03:51 +01:00
2021-11-18 14:03:52 +01:00