]> git.ipfire.org Git - thirdparty/kernel/stable.git/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:22:13 +0000 (13:22 +0100)
commitec62f9cdf6d428b56b1964a5d90ee9b61492b6f5
tree8f9b4343019ad5bb3a2e039c0c2fe98459e0448f
parent0654a224a9d82d62d2a51740eacc1a986570c810
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