projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a52cb32
)
Input: synaptics-rmi4 - fix error return code in rmi_driver_probe()
author
Wei Yongjun
<weiyongjun1@huawei.com>
Tue, 28 Apr 2020 23:09:53 +0000
(16:09 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 3 Jun 2020 06:17:57 +0000
(08:17 +0200)
[ Upstream commit
5caab2da63207d6d631007f592f5219459e3454d
]
Fix to return a negative error code from the input_register_device()
error handling case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link:
https://lore.kernel.org/r/20200428134948.78343-1-weiyongjun1@huawei.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/rmi4/rmi_driver.c
patch
|
blob
|
history
diff --git
a/drivers/input/rmi4/rmi_driver.c
b/drivers/input/rmi4/rmi_driver.c
index 633fd0d660c10210d31f8b41bcac50355f86fb13..30a8d816c45c947204da370053a0711b7f247bc8 100644
(file)
--- a/
drivers/input/rmi4/rmi_driver.c
+++ b/
drivers/input/rmi4/rmi_driver.c
@@
-1220,7
+1220,8
@@
static int rmi_driver_probe(struct device *dev)
if (data->input) {
rmi_driver_set_input_name(rmi_dev, data->input);
if (!rmi_dev->xport->input) {
- if (input_register_device(data->input)) {
+ retval = input_register_device(data->input);
+ if (retval) {
dev_err(dev, "%s: Failed to register input device.\n",
__func__);
goto err_destroy_functions;