]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
drivers/char/tty_io.c: Avoid panic when no console is configured.
authorWill Newton <will.newton@gmail.com>
Mon, 1 Dec 2008 11:36:06 +0000 (11:36 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 1 Dec 2008 16:19:10 +0000 (08:19 -0800)
commit296fa7f6a3f3342d40df7713e74246198295654b
tree01ba0ee814b6281ea22bfd33885e18741d7234c4
parentb4dcfbee3b536c9125762e8f6681ac6be0e9256b
drivers/char/tty_io.c: Avoid panic when no console is configured.

When no console is configured tty_open tries to call kref_get on a NULL
pointer, return ENODEV instead.

Signed-off-by: Will Newton <will.newton@gmail.com>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_io.c