Re: [PATCH v2] drm/exynos: fix ref count leak in mic_pre_enable

2020-06-15 Thread Inki Dae
20. 6. 15. 오후 2:49에 Navid Emamdoost 이(가) 쓴 글: > in mic_pre_enable, pm_runtime_get_sync is called which > increments the counter even in case of failure, leading to incorrect > ref count. In case of failure, decrement the ref count before returning. > > Signed-off-by: Navid Emamdoost > --- > Ch

[PATCH v2] drm/exynos: fix ref count leak in mic_pre_enable

2020-06-14 Thread Navid Emamdoost
in mic_pre_enable, pm_runtime_get_sync is called which increments the counter even in case of failure, leading to incorrect ref count. In case of failure, decrement the ref count before returning. Signed-off-by: Navid Emamdoost --- Changes in v2: - reuse the unlock label and call pm_runti