ed 2008-11-12 09:04:44 UTC
FreeBSD src repository
Modified files:
sys/kern tty_ttydisc.c
Log:
SVN rev 184866 on 2008-11-12 09:04:44Z by ed
Don't forget to relock the TTY after uiomove() returns an error.
Peter Holm just discovered this funny bug inside the TTY code: if
uiomove() in ttydisc_write() returns an error, we forget to relock the
TTY before jumping out of ttydisc_write(). Fix it by placing
tty_unlock() and tty_lock() around uiomove().
Submitted by: pho
Revision Changes Path
1.7 +2 -4 src/sys/kern/tty_ttydisc.c