Paul Fulghum 38ad2ed08d tty: restore locked ioctl file op
Restore tty locked ioctl handler which was replaced with
an unlocked ioctl handler in hung_up_tty_fops by the patch:

commit e10cc1df1d2014f68a4bdcf73f6dd122c4561f94
Author: Paul Fulghum <paulkf@microgate.com>
Date:   Thu May 10 22:22:50 2007 -0700

    tty: add compat_ioctl

This was reported in:
[Bug 8473] New: Oops: 0010 [1] SMP

The bug is caused by switching to hung_up_tty_fops in do_tty_hangup.  An
ioctl call can be waiting on BLK after testing for existence of the locked
ioctl handler in the normal tty fops, but before calling the locked ioctl
handler.  If a hangup occurs at that point, the locked ioctl fop is NULL
and an oops occurs.

(akpm: we can remove my debugging code from do_ioctl() now, but it'll be OK to
do that for 2.6.23)

Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-16 13:16:15 -07:00
..
2007-05-09 12:30:49 -07:00
2007-05-11 08:29:34 -07:00
2007-05-12 10:55:39 -07:00
2007-05-08 11:15:12 -07:00
2007-05-23 20:14:13 -07:00
2006-12-07 08:39:41 -08:00
2007-05-08 11:15:09 -07:00
2007-05-08 11:15:13 -07:00
2006-10-04 07:55:13 -07:00
2006-12-08 08:28:57 -08:00
2007-05-21 09:18:19 -07:00
2006-12-08 08:28:57 -08:00
2007-05-08 11:15:24 -07:00
2007-02-11 10:51:26 -08:00
2007-05-21 14:34:04 +09:00
2007-03-17 01:03:26 +00:00
2007-02-20 17:11:55 +00:00
2007-05-07 12:13:04 -07:00
2007-05-08 11:53:27 -07:00
2007-05-08 11:15:14 -07:00
2007-02-12 09:48:30 -08:00
2007-05-29 20:09:34 -07:00
2007-05-08 11:15:13 -07:00
2007-02-12 09:48:30 -08:00
2006-12-13 09:05:49 -08:00
2006-12-08 08:28:59 -08:00
2007-05-11 08:29:34 -07:00
2007-02-12 09:48:30 -08:00
2007-05-08 11:15:05 -07:00
2007-06-16 13:16:15 -07:00
2006-12-20 16:37:48 +11:00