WSL2-Linux-Kernel/drivers/media
Qiushi Wu 7dae2aaaf4 media: ti-vpe: Fix a missing check and reference count leak
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>
2020-09-27 10:54:11 +02:00
..
cec media: cec-adap.c: add 'unregistered' checks 2020-09-26 10:25:13 +02:00
common media: videobuf2: use sgtable-based scatterlist wrappers 2020-09-26 10:35:18 +02:00
dvb-core treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
dvb-frontends Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
firewire media: firewire: Using uninitialized values in node_probe() 2020-07-04 11:57:10 +02:00
i2c media: tc358743: cleanup tc358743_cec_isr 2020-09-26 10:25:51 +02:00
mc media: mc-device.c: change media_device_request_alloc to match media_ioctl_info 2020-08-29 08:15:23 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci media: media/pci: prevent memory leak in bttv_probe 2020-09-26 10:55:55 +02:00
platform media: ti-vpe: Fix a missing check and reference count leak 2020-09-27 10:54:11 +02:00
radio Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
rc Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
spi media: i2c/Kconfig: use sub-menus for I2C support 2020-04-16 10:34:40 +02:00
test-drivers media: vivid: Add support to the CSC API 2020-09-26 10:21:34 +02:00
tuners Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
usb media: usb: uvc: no need to check return value of debugfs_create functions 2020-09-26 10:15:17 +02:00
v4l2-core media: v4l2-mem2mem: simplify poll logic 2020-09-26 10:18:09 +02:00
Kconfig media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00