projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8b4c46
)
Input: db9 - fix potential buffer overrun
author
Eric Sesterhenn
<snakebyte@gmx.de>
Wed, 28 Jun 2006 03:42:33 +0000
(23:42 -0400)
committer
Dmitry Torokhov
<dtor@insightbb.com>
Wed, 28 Jun 2006 03:42:33 +0000
(23:42 -0400)
Fixes Coverity #id 483
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/joystick/db9.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/joystick/db9.c
b/drivers/input/joystick/db9.c
index 6f31f054d1bb9b144f5edd05c925dbac236795b9..5080e15c6d30c6dca5a1f40fc28c419843cbdf3b 100644
(file)
--- a/
drivers/input/joystick/db9.c
+++ b/
drivers/input/joystick/db9.c
@@
-584,7
+584,7
@@
static struct db9 __init *db9_probe(int parport, int mode)
goto err_out;
}
- if (db9_mode
[mode].
bidirectional && !(pp->modes & PARPORT_MODE_TRISTATE)) {
+ if (db9_mode
->
bidirectional && !(pp->modes & PARPORT_MODE_TRISTATE)) {
printk(KERN_ERR "db9.c: specified parport is not bidirectional\n");
err = -EINVAL;
goto err_put_pp;