linux/arch/parisc/kernel
Jiri Slaby 49a5f3cf6a TTY: pdc_cons, fix regression in close
The test in pdc_console_tty_close '!tty->count' was always wrong
because tty->count is decremented after tty->ops->close is called and
thus can never be zero. Hence the 'then' branch was never executed and
the timer never deleted.

This did not matter until commit 5dd5bc40f3 ("TTY: pdc_cons, use
tty_port").  There we needed to set TTY in tty_port to NULL, but this
never happened due to the bug above.

So change the test to really trigger at the last close by changing the
condition to 'tty->count == 1'.

Well, the driver should not touch tty->count at all.  It should use
tty_port->count and count open count there itself.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Reported-and-tested-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Helge Deller <deller@gmx.de>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-05-05 16:21:21 -07:00
..
.gitignore
asm-offsets.c
binfmt_elf32.c
cache.c Disintegrate asm/system.h for PA-RISC 2012-03-28 18:30:02 +01:00
drivers.c parisc: Add export.h to files needing EXPORT_SYMBOL/THIS_MODULE 2011-10-31 19:31:00 -04:00
entry.S [PARISC] only make executable areas executable 2011-04-15 12:55:18 -05:00
firmware.c Disintegrate asm/system.h for PA-RISC 2012-03-28 18:30:02 +01:00
ftrace.c
hardware.c
head.S [PARISC] only make executable areas executable 2011-04-15 12:55:18 -05:00
hpmc.S
init_task.c
inventory.c Fix common misspellings 2011-03-31 11:26:23 -03:00
irq.c parisc: Use irq_to_desc() in show_interrupts() 2011-03-29 14:48:08 +02:00
Makefile
module.c modules: make arch's use default loader hooks 2011-07-24 22:06:04 +09:30
pa7300lc.c
pacache.S [PARISC] fix pacache .size with new binutils 2011-04-15 12:50:41 -05:00
parisc_ksyms.c atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
pci-dma.c parisc: Add export.h to files needing EXPORT_SYMBOL/THIS_MODULE 2011-10-31 19:31:00 -04:00
pci.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
pdc_chassis.c
pdc_cons.c TTY: pdc_cons, fix regression in close 2012-05-05 16:21:21 -07:00
perf_asm.S
perf_images.h
perf.c
process.c sched/rt: Use schedule_preempt_disabled() 2012-03-01 10:28:03 +01:00
processor.c
ptrace.c Disintegrate asm/system.h for PA-RISC 2012-03-28 18:30:02 +01:00
real2.S
setup.c parisc: Add export.h to files needing EXPORT_SYMBOL/THIS_MODULE 2011-10-31 19:31:00 -04:00
signal32.c
signal32.h
signal.c Fix common misspellings 2011-03-31 11:26:23 -03:00
smp.c PARISC misc on 20120331 2012-03-31 13:32:30 -07:00
stacktrace.c
sys32.h
sys_parisc32.c [PARISC] wire up fanotify syscalls 2011-04-15 13:54:39 -05:00
sys_parisc.c
syscall_table.S remove remaining references to nfsservctl 2011-08-29 16:31:59 -07:00
syscall.S Fix common misspellings 2011-03-31 11:26:23 -03:00
time.c clocksource: parisc: Convert to clocksource_register_hz/khz 2011-11-21 19:01:02 -08:00
topology.c
traps.c Disintegrate asm/system.h for PA-RISC 2012-03-28 18:30:02 +01:00
unaligned.c
unwind.c
vmlinux.lds.S Merge branch 'for-2.6.40' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu 2011-05-24 11:53:42 -07:00