Home
last modified time | relevance | path

Searched hist:"8 ba4862e" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/media/platform/rockchip/rkisp1/
H A Drkisp1-params.c8ba4862e Thu Feb 24 06:58:40 CST 2022 Laurent Pinchart <laurent.pinchart@ideasonboard.com> media: rkisp1: params: Fix and simplify (un)registration

The rkisp1_params_register() and rkisp1_params_unregister() functions
don't destroy the mutex (in the error path for the former). Fix this,
simplify error handling at registration time as media_entity_cleanup()
can be called on an uninitialized entity, and make
rkisp1_params_unregister() safe to be called on an unregistered params
node to prepare for simplification of error handling at probe time.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>