[PATCH -next] media: sun8i: Fix PM reference leak in deinterlace_start_streaming()
Jernej Škrabec
jernej.skrabec at siol.net
Sun Apr 11 19:18:41 BST 2021
Dne četrtek, 08. april 2021 ob 15:36:30 CEST je Lu Jialin 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: Lu Jialin <lujialin4 at huawei.com>
Acked-by: Jernej Skrabec <jernej.skrabec at siol.net>
Best regards,
Jernej
More information about the linux-arm-kernel
mailing list