linux/drivers/media/platform/stm32
Qiushi Wu 88f50a05f9 media: stm32-dcmi: Fix a reference count leak
Calling pm_runtime_get_sync increments the counter even in case of
failure, causing incorrect ref count if pm_runtime_put is not
called in error handling paths. Thus replace the jump target
"err_release_buffers" by "err_pm_putw".

Fixes: 152e0bf602 ("media: stm32-dcmi: add power saving support")
Signed-off-by: Qiushi Wu <wu000273@umn.edu>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-27 10:53:52 +02:00
..
Makefile media: move CEC platform drivers to a separate directory 2020-04-15 12:06:40 +02:00
stm32-dcmi.c media: stm32-dcmi: Fix a reference count leak 2020-09-27 10:53:52 +02:00