linux-stable/sound/ac97
Yufen Yu 7c3a170279 ALSA: ac97: fix PM reference leak in ac97_bus_remove()
[ Upstream commit a38e93302e ]

pm_runtime_get_sync will increment pm usage counter even it failed.
Forgetting to putting operation will result in reference leak here.
Fix it by replacing it with pm_runtime_resume_and_get to keep usage
counter balanced.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Link: https://lore.kernel.org/r/20210524093811.612302-1-yuyufen@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:16:08 +02:00
..
Kconfig
Makefile
ac97_core.h
bus.c ALSA: ac97: fix PM reference leak in ac97_bus_remove() 2021-07-20 16:16:08 +02:00
codec.c
snd_ac97_compat.c ALSA: ac97: fix device initialization in the compat layer 2018-08-19 18:34:31 +02:00