cvs commit: src/sys/kern tty_ttydisc.c

[ Available lists | Index of cvs-src-old | Month of Nov 2008 | Week of 12 Nov 2008 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Ed Schouten <ed@FreeBSD.org>
Date
12 Nov 2008 09:04:58
Subject
cvs commit: src/sys/kern tty_ttydisc.c
Message-ID
200811120904.mAC94wKc075204@repoman.freebsd.org


[ Hide this part ]
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

Elapsed time: 0.072 seconds