Thread (3 messages) 3 messages, 3 authors, 2020-11-25

Re: [PATCH] Input: i8042 - fix error return code in i8042_setup_aux()

From: Hans de Goede <hidden>
Date: 2020-11-23 13:55:58

Hi,

On 11/23/20 2:34 PM, Luo Meng wrote:
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 <redacted>
Signed-off-by: Luo Meng <redacted>
Thanks, patch looks good to me:

Reviewed-by: Hans de Goede <redacted>

Regards,

Hans
quoted hunk ↗ jump to hunk
---
 drivers/input/serio/i8042.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
index 944cbb519c6d..abae23af0791 100644
--- a/drivers/input/serio/i8042.c
+++ b/drivers/input/serio/i8042.c
@@ -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;
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help