diff options
| author | Luo Meng <luomeng12@huawei.com> | 2020-11-24 17:45:23 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-11 13:38:01 +0100 |
| commit | cad39416570f6fb1fbfe0be4ee3d245e311fcf0b (patch) | |
| tree | 6754899324ca3244fb17690568e59aa0c10a3a11 | |
| parent | c05b676982c02dd6bb0f1d6a6a9f8ca2f3abb8ef (diff) | |
| download | linux-cad39416570f6fb1fbfe0be4ee3d245e311fcf0b.tar.gz linux-cad39416570f6fb1fbfe0be4ee3d245e311fcf0b.tar.bz2 linux-cad39416570f6fb1fbfe0be4ee3d245e311fcf0b.zip | |
Input: i8042 - fix error return code in i8042_setup_aux()
commit 855b69857830f8d918d715014f05e59a3f7491a0 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: f81134163fc7 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/input/serio/i8042.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index 6b648339733f..37f84ba11f05 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c @@ -1456,7 +1456,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; |
