[PATCH] ALSA: ac97: fix PM reference leak in ac97_bus_remove()

Takashi Iwai tiwai at suse.de
Tue May 25 08:59:20 CEST 2021


On Mon, 24 May 2021 11:38:11 +0200,
Yufen Yu wrote:
> 
> 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 at huawei.com>
> Signed-off-by: Yufen Yu <yuyufen at huawei.com>

Thanks, applied.


Takashi


More information about the Alsa-devel mailing list