OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d12b64b
)
Input: hil_kbd - fix error return code in hil_dev_connect()
author
Zhen Lei
<thunder.leizhen@huawei.com>
Mon, 24 May 2021 18:52:42 +0000
(11:52 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Tue, 25 May 2021 03:57:04 +0000
(20:57 -0700)
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>
drivers/input/keyboard/hil_kbd.c
patch
|
blob
|
history
diff --git
a/drivers/input/keyboard/hil_kbd.c
b/drivers/input/keyboard/hil_kbd.c
index
bb29a7c
..
54afb38
100644
(file)
--- a/
drivers/input/keyboard/hil_kbd.c
+++ b/
drivers/input/keyboard/hil_kbd.c
@@
-512,6
+512,7
@@
static int hil_dev_connect(struct serio *serio, struct serio_driver *drv)
HIL_IDD_NUM_AXES_PER_SET(*idd)) {
printk(KERN_INFO PREFIX
"combo devices are not supported.\n");
+ error = -EINVAL;
goto bail1;
}