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

Markus Elfring Markus.Elfring at web.de
Sun Jun 14 09:33:34 UTC 2020


> 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_dev *dev)
>  	}
>
>  	return 0;
> +out:
> +	pm_runtime_put(&sdata->client->dev);
> +	return err;
>  }
…

Perhaps use the label “put_runtime” instead?

Regards,
Markus



More information about the Linux-stm32 mailing list