]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] hvc_console: Add some sanity checks
authorMilton Miller <miltonm@bga.com>
Fri, 8 Jul 2005 00:56:23 +0000 (17:56 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 01:23:39 +0000 (18:23 -0700)
commit7805b1b29ffdd252dfef36aa28d7bda70cd586d3
tree675b2300649b389eb4fb02ec298309e40d235d2c
parent64e4da57964c03da9a03087a398cade81b7bb496
[PATCH] hvc_console: Add some sanity checks

Check if a vterm was registered before accepting it as a console.
Check that a slot hasn't been probed with a tty in hvc_instantiate().
Check that a slot hasn't been free'ed when handing out console device.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/hvc_console.c