diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2021-03-04 16:19:57 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-03-08 13:33:49 +0300 |
commit | fa8ba6e5dc0e78e409e503ddcfceef5dd96527f4 (patch) | |
tree | 5bd2e2b2949df7ceb9f4d479febfc48d8c0a398d /drivers/hid/hid-cp2112.c | |
parent | 9a0b44fbfea1932196a4879b44a37dd182e984c5 (diff) | |
download | linux-fa8ba6e5dc0e78e409e503ddcfceef5dd96527f4.tar.xz |
HID: alps: fix error return code in alps_input_configured()
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>
Diffstat (limited to 'drivers/hid/hid-cp2112.c')
0 files changed, 0 insertions, 0 deletions