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
..
hvc_beat.c serial: Kill off NO_IRQ 2012-01-26 17:14:50 -08:00
hvc_bfin_jtag.c hvc: add Blackfin JTAG console support 2011-02-17 11:12:40 -08:00
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 tty: hvc_dcc: Fix duplicate character inputs 2011-11-15 12:02:13 -08:00
hvc_irq.c TTY: irq: Remove IRQF_DISABLED 2011-09-22 16:08:57 -07:00
hvc_iucv.c Fix common misspellings 2011-03-31 11:26:23 -03:00
hvc_opal.c tty/hvc_opal: Fix debug function name 2012-07-10 19:16:25 +10:00
hvc_rtas.c serial: Kill off NO_IRQ 2012-01-26 17:14:50 -08:00
hvc_tile.c
hvc_udbg.c Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2012-03-21 18:55:10 -07:00
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_lib.c tty: move the termios object into the tty 2012-07-16 13:00:41 -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
Kconfig tty/serial: remove CONFIG_EXPERIMENTAL dependencies 2012-09-18 16:19:27 +01:00
Makefile tty: powerpc: remove hvc_iseries 2012-03-09 10:35:17 +11:00