commit | 629775f52692f73ae1a3ebdcdfb0888eaa08e35d | [log] [tgz] |
---|---|---|
author | Jia-Ju Bai <baijiaju1990@gmail.com> | Thu Mar 04 05:19:57 2021 -0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Apr 28 12:07:16 2021 +0200 |
tree | 1fac6a6c85ca4848bdf96dc72c8c45f593382618 | |
parent | e87fd8f564bb4dba662df02a23710373d90296ac [diff] |
HID: alps: fix error return code in alps_input_configured() [ Upstream commit fa8ba6e5dc0e78e409e503ddcfceef5dd96527f4 ] When input_register_device() fails, no error return code is assigned. To fix this bug, ret is assigned with -ENOENT as error return code. Reported-by: TOTE Robot <oslab@tsinghua.edu.cn> Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>