]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: hil_kbd - fix error return code in hil_dev_connect()
authorZhen Lei <thunder.leizhen@huawei.com>
Mon, 24 May 2021 18:52:42 +0000 (11:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 15:00:14 +0000 (17:00 +0200)
commit71611cc43b0068fae638bf1465ce07539259a638
treefd2770787166785c67dfb89d15af9589de85889e
parenteb6d75ee9d402ec5c957602459ba3fd57326b0ce
Input: hil_kbd - fix error return code in hil_dev_connect()

[ Upstream commit d9b576917a1d0efa293801a264150a1b37691617 ]

Return error code -EINVAL rather than '0' when the combo devices are not
supported.

Fixes: fa71c605c2bb ("Input: combine hil_kbd and hil_ptr drivers")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210515030053.6824-1-thunder.leizhen@huawei.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/keyboard/hil_kbd.c