Re: [PATCH] Input: stmfts: fix ref count leak in stmfts_input_open

2020-06-14 Thread Markus Elfring
> in stmfts_input_open, … * Can the term “reference count” become relevant also for this commit message besides other possible adjustments? * Would you like to add the tag “Fixes”? … > +++ b/drivers/input/touchscreen/stmfts.c … > @@ -367,6 +367,9 @@ static int stmfts_input_open(struct input_

[PATCH] Input: stmfts: fix ref count leak in stmfts_input_open

2020-06-13 Thread Navid Emamdoost
in stmfts_input_open, 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 --- drivers/input/touchscreen/stmfts.c | 7 +-- 1 file change