1
0
Fork 0
alistair23-linux/drivers/media
Dinghao Liu 05f9cc28a9 media: venus: core: Fix runtime PM imbalance in venus_probe
[ Upstream commit bbe516e976 ]

pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code. Thus a pairing decrement is needed on
the error handling path to keep the counter balanced. For other error
paths after this call, things are the same.

Fix this by adding pm_runtime_put_noidle() after 'err_runtime_disable'
label. But in this case, the error path after pm_runtime_put_sync()
will decrease PM usage counter twice. Thus add an extra
pm_runtime_get_noresume() in this path to balance PM counter.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 09:58:03 +01:00
..
cec cec-api: prevent leaking memory through hole in structure 2020-09-03 11:26:46 +02:00
common media: v4l2-tpg: add support for new pixelformats 2019-07-30 12:16:45 -04:00
dvb-core media: dvbdev: Fix tuner->demod media controller link 2020-06-22 09:30:55 +02:00
dvb-frontends media: tda10071: fix unsigned sign extension overflow 2020-10-01 13:17:41 +02:00
firewire media: firewire: fix memory leak 2020-10-29 09:58:01 +01:00
i2c media: tc358743: cleanup tc358743_cec_isr 2020-10-29 09:57:33 +01:00
mc media: mc-device.c: fix memleak in media_device_register_entity 2020-10-01 13:17:10 +02:00
mmc treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
pci media: saa7134: avoid a shift overflow 2020-10-29 09:58:03 +01:00
platform media: venus: core: Fix runtime PM imbalance in venus_probe 2020-10-29 09:58:03 +01:00
radio media: si470x-i2c: add missed operations in remove 2019-12-31 16:45:13 +01:00
rc media: ati_remote: sanity check for both endpoints 2020-10-29 09:58:01 +01:00
spi media: Clarify how menus are hidden by SUBDRV_AUTOSELECT 2019-08-19 12:00:29 -03:00
tuners media: tuner-simple: fix regression in simple_set_radio_freq 2020-10-29 09:57:31 +01:00
usb media: uvcvideo: Ensure all probed info is returned to v4l2 2020-10-29 09:58:03 +01:00
v4l2-core media: v4l2-core: fix a use-after-free bug of sd->devnode 2020-04-01 11:02:18 +02:00
Kconfig media: Clarify how menus are hidden by SUBDRV_AUTOSELECT 2019-08-19 12:00:29 -03:00
Makefile media: move drivers/media/media-* to drivers/media/mc/mc-* 2019-05-28 12:15:46 -04:00