Skip to content

Commit 855b698

Browse files
Luo Mengdtor
authored andcommitted
Input: i8042 - fix error return code in i8042_setup_aux()
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: f811341 ("Input: i8042 - use platform_driver_probe") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Luo Meng <luomeng12@huawei.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20201123133420.4071187-1-luomeng12@huawei.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent fa248db commit 855b698

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/input/serio/i8042.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,8 @@ static int __init i8042_setup_aux(void)
14711471
if (error)
14721472
goto err_free_ports;
14731473

1474-
if (aux_enable())
1474+
error = aux_enable();
1475+
if (error)
14751476
goto err_free_irq;
14761477

14771478
i8042_aux_irq_registered = true;

0 commit comments

Comments
 (0)