Konstantin Belousov cc57af357b The dev_refthread() in the tty_gettp() may fail, because Giant is taken
in the giant_trick routines after the dev_refthread increments the
si_threadcount. Remove assert, do not perform dev_relthread() for failed
dev_refthread(), and handle failure in the tty_gettp() callers (cdevsw
tty methods).

Before kern_conf.c 1.210 and 1.211, the kernel usually paniced in the
giant_trick routines dereferencing NULL cdevsw, not taking this fault.

Reported by:	Vince Hoffman <jhary unsane co uk>
Debugging help and tested by:	pho
Reviewed by:	jhb
MFC after:	1 week
2008-05-23 16:46:27 +00:00
..
2008-03-31 12:05:52 +00:00
2008-03-07 15:27:08 +00:00
2008-05-12 06:42:06 +00:00
2008-04-29 05:48:05 +00:00
2007-04-23 12:53:00 +00:00
2008-05-23 04:06:49 +00:00
2007-12-14 21:30:51 +00:00
2008-03-19 07:33:16 +00:00
2008-04-08 09:45:49 +00:00
2008-05-18 21:08:12 +00:00