Skip to content
Snippets Groups Projects
Commit ec62f9cd authored by Luo Meng's avatar Luo Meng Committed by Greg Kroah-Hartman
Browse files

Input: i8042 - fix error return code in i8042_setup_aux()


commit 855b6985 upstream.

Fix to return a negative error code from the error handling case
instead of 0 in function i8042_setup_aux(), as done elsewhere in this
function.

Fixes: f8113416 ("Input: i8042 - use platform_driver_probe")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarLuo Meng <luomeng12@huawei.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20201123133420.4071187-1-luomeng12@huawei.com


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0654a224
No related branches found
No related tags found
3 merge requests!337Remove vdo part of tps6598x_rx_identity_reg struct,!302Pureos/byzantium updates,!283Stable/5.9.15
......@@ -1471,7 +1471,8 @@ static int __init i8042_setup_aux(void)
if (error)
goto err_free_ports;
if (aux_enable())
error = aux_enable();
if (error)
goto err_free_irq;
i8042_aux_irq_registered = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment