]> git.itanic.dy.fi Git - linux-stable/commit
Input: i8042 - fix error return code in i8042_setup_aux()
authorLuo Meng <luomeng12@huawei.com>
Wed, 25 Nov 2020 01:45:23 +0000 (17:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Dec 2020 12:25:04 +0000 (13:25 +0100)
commit5b27463cea05d69a56c26135558bdd57bcabbe52
tree0afc2ceab2d27cfaf56b8eb61e3a6d59be403d0b
parentc40329943ab411fb2581018751c51caffd003916
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>
drivers/input/serio/i8042.c