Re: [PATCH] media: sti: Fix reference count leaks

2020-09-17 Thread Hans Verkuil
Hi Jean-Christophe, I'll take this patch, but while reviewing it I noticed something else: On 14/06/2020 05:31, wu000...@umn.edu wrote: > From: Qiushi Wu > > pm_runtime_get_sync() increments the runtime PM usage counter even > when it returns an error code, causing incorrect ref count if > pm_r

[PATCH] media: sti: Fix reference count leaks

2020-06-13 Thread wu000273
From: Qiushi Wu pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code, causing incorrect ref count if pm_runtime_put_noidle() is not called in error handling paths. Thus call pm_runtime_put_noidle() if pm_runtime_get_sync() fails. Signed-off-by: Qiushi