Input: i8042 - fix error return code in i8042_setup_aux()
Subsystems (2)
PATCH 1/1 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 f81134163fc7 ("Input: i8042 - use platform_driver_probe")
Reported-by Hulk Robot <[email protected]>
Signed-off-by Luo Meng <[email protected]>
--- drivers/input/serio/i8042.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/input/serio/i8042.c +2 -1
@@ -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;
Signature · 1 line
2.25.4
Hi,
Quoted 7 lines · Luo Meng
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 <[email protected]>Signed-off-by Luo Meng <[email protected]>
Thanks, patch looks good to me:
Reviewed-by Hans de Goede <[email protected]>
Regards,
Hans
Quoted 19 lines
--- drivers/input/serio/i8042.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/input/serio/i8042.c +2
-1@@ -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;
Quoted 7 lines · Luo Meng
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 <[email protected]>Signed-off-by Luo Meng <[email protected]>
Applied, thank you.
Signature · 1 line
Dmitry