summaryrefslogtreecommitdiffstats
path: root/scripts/insert-sys-cert.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-02-24 12:58:40 +0000
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-06-27 08:01:22 +0100
commitf738cb62a8a7e1bea55e7f7047e2a352f1106f55 (patch)
treed276a7cc8bf546e3f71402c2f08857753380e7b5 /scripts/insert-sys-cert.c
parent48d775688f34f77757dd1961f14b772771197daa (diff)
downloadlinux-f738cb62a8a7e1bea55e7f7047e2a352f1106f55.tar.gz
linux-f738cb62a8a7e1bea55e7f7047e2a352f1106f55.zip
media: rkisp1: resizer: Fix and simplify (un)registration
The rkisp1_rsz_register() and rkisp1_rsz_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_rsz_unregister() and rkisp1_resizer_devs_unregister() safe to be called on an unregistered resizer subdev to prepare for simplification of error handling at probe time. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Dafna Hirschfeld <dafna@fastmail.com> Reviewed-by: Ricardo Ribalda <ribalda@chromium.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'scripts/insert-sys-cert.c')
0 files changed, 0 insertions, 0 deletions