linux-stable/drivers/media
Qiushi Wu 0cb5c9607f media: ti-vpe: Fix a missing check and reference count leak
[ Upstream commit 7dae2aaaf4 ]

pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code, causing incorrect ref count if
pm_runtime_put_noidle() is not called in error handling paths.
And also, when the call of function vpe_runtime_get() failed,
we won't call vpe_runtime_put().
Thus call pm_runtime_put_noidle() if pm_runtime_get_sync() fails
inside vpe_runtime_get().

Fixes: 4571912743 ("[media] v4l: ti-vpe: Add VPE mem to mem driver")
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 09:07:02 +01:00
..
cec cec-api: prevent leaking memory through hole in structure 2020-09-03 11:22:26 +02:00
common media: v4l2-tpg: array index could become negative 2019-01-09 17:14:51 +01:00
dvb-core media: dvb-core: fix a memory leak bug 2019-10-05 12:47:54 +02:00
dvb-frontends media: tda10071: fix unsigned sign extension overflow 2020-10-01 13:12:37 +02:00
firewire media: firewire: Using uninitialized values in node_probe() 2020-08-21 09:48:08 +02:00
i2c media: tc358743: initialize variable 2020-10-29 09:07:02 +01:00
mmc
pci media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq() 2020-09-03 11:22:24 +02:00
platform media: ti-vpe: Fix a missing check and reference count leak 2020-10-29 09:07:02 +01:00
radio media: si470x-i2c: Move free() past last use of 'radio' 2020-02-05 14:18:17 +00:00
rc media: gpio-ir-tx: improve precision of transmitted signal due to scheduling 2020-09-03 11:22:28 +02:00
spi
tuners media: tuner-simple: fix regression in simple_set_radio_freq 2020-10-29 09:07:01 +01:00
usb media: uvcvideo: Set media controller entity functions 2020-10-29 09:07:01 +01:00
v4l2-core media/v4l2-core: set pages dirty upon releasing DMA buffers 2020-02-14 16:32:08 -05:00
Kconfig
Makefile
media-device.c media: mc-device.c: don't memset __user pointer contents 2019-07-31 07:28:22 +02:00
media-devnode.c
media-entity.c