diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-06-27 23:42:33 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2006-06-27 23:42:33 -0400 |
commit | 0a3a6d69b7e9f1d7fa5add7db528e7b81cbd422e (patch) | |
tree | cb99f2f7dd314bcb6506e99cb15f3f126c0c94d4 /drivers/input | |
parent | f8b4c46c0c3667a56148a59bca54d945d246a3f3 (diff) | |
download | kernel_samsung_smdk4412-0a3a6d69b7e9f1d7fa5add7db528e7b81cbd422e.tar.gz kernel_samsung_smdk4412-0a3a6d69b7e9f1d7fa5add7db528e7b81cbd422e.tar.bz2 kernel_samsung_smdk4412-0a3a6d69b7e9f1d7fa5add7db528e7b81cbd422e.zip |
Input: db9 - fix potential buffer overrun
Fixes Coverity #id 483
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/joystick/db9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/joystick/db9.c b/drivers/input/joystick/db9.c index 6f31f054d1b..5080e15c6d3 100644 --- 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; |