Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a3a6d69 authored by Eric Sesterhenn's avatar Eric Sesterhenn Committed by Dmitry Torokhov
Browse files

Input: db9 - fix potential buffer overrun



Fixes Coverity #id 483

Signed-off-by: default avatarEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent f8b4c46c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;