]> git.hungrycats.org Git - linux/commit
[PATCH] Alternative tty fasync fix
authorRussell King <rmk@arm.linux.org.uk>
Sat, 22 Feb 2003 04:15:14 +0000 (20:15 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 22 Feb 2003 04:15:14 +0000 (20:15 -0800)
commit0895269a7b8d4119e15fa185e2b6b77f9b637a0f
treeb571262de077f2a705ac540ef094f3131d48b818
parent260f6c5139effdea0781cf45e95659d7bda3e043
[PATCH] Alternative tty fasync fix

Instead of detecting when filp->private_data becomes NULL in
do_tty_hangup and check_tty_count, we remove the file descriptor
from the list of descriptors associated with the tty.  We use the
same method that dentry_open() uses.

(It also cleans that up to use a "file_kill()" instead of using a dummy
"kill_list()" that leaves pointers to stale stack entries that are never
used)

In addition, we change the for() loops into real list_for_each()
or list_for_each_entry loops as appropriate.
drivers/char/tty_io.c
fs/file_table.c
fs/open.c
include/linux/fs.h