Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: synaptics-rmi4 - fix error return code in rmi_driver_probe()

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>

authored by

Wei Yongjun and committed by
Dmitry Torokhov
5caab2da d5a5e5b5

+2 -1
+2 -1
drivers/input/rmi4/rmi_driver.c
··· 1210 1210 if (data->input) { 1211 1211 rmi_driver_set_input_name(rmi_dev, data->input); 1212 1212 if (!rmi_dev->xport->input) { 1213 - if (input_register_device(data->input)) { 1213 + retval = input_register_device(data->input); 1214 + if (retval) { 1214 1215 dev_err(dev, "%s: Failed to register input device.\n", 1215 1216 __func__); 1216 1217 goto err_destroy_functions;