PERFORCE change 67595 for review
    John Baldwin 
    jhb at FreeBSD.org
       
    Thu Dec 23 11:20:57 PST 2004
    
    
  
http://perforce.freebsd.org/chv.cgi?CH=67595
Change 67595 by jhb at jhb_slimer on 2004/12/23 19:20:04
	Defer tty_close() until the very end of ttyclose() since tty_close()
	may remove the last reference to 'tp' via ttyrel() resulting in it
	being free'd.
Affected files ...
.. //depot/projects/smpng/sys/kern/tty.c#54 edit
Differences ...
==== //depot/projects/smpng/sys/kern/tty.c#54 (text+ko) ====
@@ -3172,10 +3172,10 @@
 	ttyldoptim(tp);
 	if (tp->t_close != NULL)
 		tp->t_close(tp);
-	tty_close(tp);
 	tp->t_do_timestamp = 0;
 	if (tp->t_pps != NULL)
 		tp->t_pps->ppsparam.mode = 0;
+	tty_close(tp);
 	return (0);
 }
 
    
    
More information about the p4-projects
mailing list