linux/drivers/media
Qiushi Wu d0675b67b4 media: camss: Fix a 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 is not called in error handling paths.
Thus call pm_runtime_put_sync() if pm_runtime_get_sync() fails.

Fixes: 02afa816db ("media: camss: Add basic runtime PM 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: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: camss: Fix a reference count leak. 2020-09-27 10:53: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