linux/drivers/tty/hvc
Paul Mackerras c019bc119a TTY: hvc_console, fix port reference count going to zero prematurely
Commit bdb498c200 "TTY: hvc_console, add tty install" took the port
refcounting out of hvc_open()/hvc_close(), but failed to remove the
kref_put() and tty_kref_put() calls in hvc_hangup() that were there to
remove the extra references that hvc_open() had taken.

The result was that doing a vhangup() when the current terminal was
a hvc_console, then closing the current terminal, would end up calling
destroy_hvc_struct() and making the port disappear entirely.  This
meant that Fedora 17 systems would boot up but then not display the
login prompt on the console, and attempts to open /dev/hvc0 would
give a "No such device" error.

This fixes it by removing the extra kref_put() and tty_kref_put() calls.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Acked-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-14 12:27:29 -08:00
..
Kconfig tty/serial: remove CONFIG_EXPERIMENTAL dependencies 2012-09-18 16:19:27 +01:00
Makefile
hvc_beat.c
hvc_bfin_jtag.c
hvc_console.c TTY: hvc_console, fix port reference count going to zero prematurely 2012-11-14 12:27:29 -08:00
hvc_console.h TTY: HVC, use count from tty_port 2012-04-09 11:28:18 -07:00
hvc_dcc.c
hvc_irq.c
hvc_iucv.c
hvc_opal.c tty/hvc_opal: Fix debug function name 2012-07-10 19:16:25 +10:00
hvc_rtas.c
hvc_tile.c
hvc_udbg.c
hvc_vio.c hvc_vio: Improve registration of udbg backend 2012-09-05 15:19:35 +10:00
hvc_xen.c xen/hvc: handle backend CLOSED without CLOSING 2012-10-04 11:30:29 -04:00
hvcs.c TTY: hvcs, add tty install 2012-08-13 16:53:14 -07:00
hvsi.c Merge branch 'for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq 2012-10-02 09:54:49 -07:00
hvsi_lib.c tty: move the termios object into the tty 2012-07-16 13:00:41 -07:00