提交 0a3a6d69 编写于 作者: E Eric Sesterhenn 提交者: Dmitry Torokhov

Input: db9 - fix potential buffer overrun

Fixes Coverity #id 483
Signed-off-by: NEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 f8b4c46c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册