Revision c019bc119a97aa20372c5a2cf210d209380d397d authored by Paul Mackerras on 14 November 2012, 08:15:47 UTC, committed by Greg Kroah-Hartman on 14 November 2012, 20:27:29 UTC
Commit bdb498c20040 "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>
1 parent 77b6706
History
File Mode Size
Makefile -rw-r--r-- 786 bytes
auto_group.c -rw-r--r-- 5.6 KB
auto_group.h -rw-r--r-- 1.5 KB
clock.c -rw-r--r-- 8.0 KB
core.c -rw-r--r-- 193.7 KB
cpupri.c -rw-r--r-- 6.6 KB
cpupri.h -rw-r--r-- 791 bytes
cputime.c -rw-r--r-- 13.5 KB
debug.c -rw-r--r-- 11.9 KB
fair.c -rw-r--r-- 132.7 KB
features.h -rw-r--r-- 1.6 KB
idle_task.c -rw-r--r-- 2.1 KB
rt.c -rw-r--r-- 47.0 KB
sched.h -rw-r--r-- 30.7 KB
stats.c -rw-r--r-- 2.7 KB
stats.h -rw-r--r-- 6.6 KB
stop_task.c -rw-r--r-- 2.7 KB

back to top