1
0
Fork 0
alistair23-linux/drivers/staging/greybus
Zhang Qilong aa1d8b9594 staging: greybus: codecs: Fix reference counter leak in error handling
[ Upstream commit 3952659a61 ]

gb_pm_runtime_get_sync has increased the usage counter of the device here.
Forgetting to call gb_pm_runtime_put_noidle will result in usage counter
leak in the error branch of (gbcodec_hw_params and gbcodec_prepare). We
fixed it by adding it.

Fixes: c388ae7696 ("greybus: audio: Update pm runtime support in dai_ops callback")
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20201109131347.1725288-2-zhangqilong3@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:51:07 +01:00
..
Documentation
tools staging: greybus: loopback_test: fix potential path truncations 2020-03-25 08:25:59 +01:00
Kconfig
Makefile
TODO
arche-apb-ctrl.c
arche-platform.c
arche_platform.h
audio_apbridgea.c
audio_apbridgea.h
audio_codec.c staging: greybus: codecs: Fix reference counter leak in error handling 2020-12-30 11:51:07 +01:00
audio_codec.h
audio_gb.c
audio_manager.c
audio_manager.h
audio_manager_module.c
audio_manager_private.h
audio_manager_sysfs.c
audio_module.c
audio_topology.c staging: greybus: audio: fix uninitialized value issue 2020-09-17 13:47:55 +02:00
authentication.c
bootrom.c
camera.c
firmware.h
fw-core.c
fw-download.c
fw-management.c
gb-camera.h
gbphy.c
gbphy.h
gpio.c
greybus_authentication.h
greybus_firmware.h
hid.c
i2c.c
light.c staging: greybus: fix a missing-check bug in gb_lights_light_config() 2020-06-24 17:50:20 +02:00
log.c
loopback.c
power_supply.c
pwm.c
raw.c
sdio.c staging: greybus: sdio: Respect the cmd->busy_timeout from the mmc core 2020-06-22 09:31:09 +02:00
spi.c
spilib.c
spilib.h
uart.c staging: greybus: Fix uninitialized scalar variable 2020-05-27 17:46:45 +02:00
usb.c
vibrator.c