Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2008 09:04:44 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern tty_ttydisc.c
Message-ID:  <200811120904.mAC94wKc075204@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811120904.mAC94wKc075204>