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

From: Markus Elfring <hidden>
Date: 2020-06-14 09:33:53
Also in: kernel-janitors, lkml

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”?


…
quoted hunk
+++ b/drivers/input/touchscreen/stmfts.c
…
quoted hunk
@@ -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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help