]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6eb1f910967bf7510bdf859dd44b63c8cf8d63bc
tree115e01e2db84ebf7069c3c12c22c9d8934f4bc63
parent22bcc5f91141becec7358e3d859eeb98f3698961
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