summaryrefslogtreecommitdiff
path: root/drivers/media/v4l2-core/v4l2-ctrls-request.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2022-07-01 14:15:59 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-07-15 15:21:53 +0100
commitf076057f0107c3ef890bfad8d6658387504e7f11 (patch)
treef85fddbc5ad188603fddaf3296868774d669bc15 /drivers/media/v4l2-core/v4l2-ctrls-request.c
parent982c0487185bd466059ff618f398a8d074ddb654 (diff)
media: stm32: dcmi: Fix subdev op call with uninitialized state
stm32-dcmi calls its source subdev with v4l2_subdev_call() using a v4l2_subdev_state constructed on stack. This means that init_cfg is never called for that state, and a source subdev that depends on the init_cfg call may break. A new macro has been added for this particular purpose, which properly initializes the state, so let's use v4l2_subdev_call_state_try() here. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Tested-by: Marek Vasut <marex@denx.de> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-ctrls-request.c')
0 files changed, 0 insertions, 0 deletions