Re: [PATCH] media: platform: sti: Fix rumtime PM imbalance in regs_show

2021-04-07 Thread Hans Verkuil
On 07/04/2021 07:43, Dinghao Liu wrote: > pm_runtime_get_sync() will increase the rumtime PM counter > even it returns an error. Thus a pairing decrement is needed > to prevent refcount leak. Fix this by replacing this API with > pm_runtime_resume_and_get(), which will not change the runtime > PM

[PATCH] media: platform: sti: Fix rumtime PM imbalance in regs_show

2021-04-06 Thread Dinghao Liu
pm_runtime_get_sync() will increase the rumtime PM counter even it returns an error. Thus a pairing decrement is needed to prevent refcount leak. Fix this by replacing this API with pm_runtime_resume_and_get(), which will not change the runtime PM counter on error. Signed-off-by: Dinghao Liu ---