Re: [PATCH -next] media: sun8i: Fix PM reference leak in deinterlace_start_streaming()
From: Jernej Škrabec
Date: Sun Apr 11 2021 - 14:18:46 EST
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@xxxxxxxxxx>
> Signed-off-by: Lu Jialin <lujialin4@xxxxxxxxxx>
Acked-by: Jernej Skrabec <jernej.skrabec@xxxxxxxx>
Best regards,
Jernej