Skip to content

Commit

Permalink
Input: db9 - fix potential buffer overrun
Browse files Browse the repository at this point in the history
Fixes Coverity #id 483

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Eric Sesterhenn authored and Dmitry Torokhov committed Jun 28, 2006
1 parent f8b4c46 commit 0a3a6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/joystick/db9.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0a3a6d6

Please sign in to comment.