On Sun, Jun 14, 2020 at 4:27 AM Andy Shevchenko
wrote:
>
> On Sun, Jun 14, 2020 at 8:58 AM Navid Emamdoost
> wrote:
> >
> > in bma150_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
On Sun, Jun 14, 2020 at 8:58 AM Navid Emamdoost
wrote:
>
> in bma150_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.
...
> error = pm_runtime_get_sy
> in bma150_open, …
* Can the term “reference count” become relevant also for this commit message
besides other possible adjustments?
* Will the tag “Fixes” become helpful?
…
> +++ b/drivers/input/misc/bma150.c
…
> @@ -357,10 +357,13 @@ static int bma150_open(struct input_dev *input)
>
in bma150_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/misc/bma150.c | 7 +--
1 file changed, 5 insertio
4 matches
Mail list logo