]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: stm32: csi: add missing pm_runtime_put on error
authorAlain Volmat <alain.volmat@foss.st.com>
Mon, 13 Jan 2025 08:57:53 +0000 (09:57 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:22:48 +0000 (15:22 +0100)
commitf7cd9c94959e7a5b8c4eca33e20bd6ba1b048a64
tree55b3180949ca2d4e1dc73e08f95173bf56a39565
parent3114848ee2609f1d2a923670fad1082a0ec3b4cc
media: stm32: csi: add missing pm_runtime_put on error

Within the stm32_csi_start function, pm_runtime_put should
be called upon error following pm_runtime_get_sync.
Rework the function error handling by putting a label in
order to have common error handling for all calls requiring
pm_runtime_put.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/st/stm32/stm32-csi.c