[PATCH -next] media: sunxi: sun8i-rotate: fix PM reference leak in rotate_start_streaming()

Jernej Škrabec jernej.skrabec at siol.net
Sun Apr 11 19:16:24 BST 2021


Dne petek, 09. april 2021 ob 08:46:58 CEST je Xiang Yang napisal(a):
> 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: Xiang Yang <xiangyang3 at huawei.com>

Acked-by: Jernej Skrabec <jernej.skrabec at siol.net>

Best regards,
Jernej





More information about the linux-arm-kernel mailing list