kgdboc,tty: Fix tty polling search to use name correctly
authorJason Wessel <jason.wessel@windriver.com>
Fri, 26 Sep 2008 15:36:42 +0000 (10:36 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Fri, 26 Sep 2008 15:36:42 +0000 (10:36 -0500)
commit0dca0fd2bfeb99738708d6c9117994ebf398e72c
tree115e01e2db84ebf7069c3c12c22c9d8934f4bc63
parent703a1edcd1534468fc18f733c03bd91a65c8c6f0
kgdboc,tty: Fix tty polling search to use name correctly

The tty_find_polling_driver() routine did not correctly check the base
part of the tty name.  This can lead to kgdboc selecting an incorrect
driver, as well as accepting a completely invalid tty such as "echo
ffff0 > /sys/module/kgdboc/parameters/kgdboc".

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
drivers/char/tty_io.c