]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r209718:
authored <ed@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 13 Jul 2010 11:04:46 +0000 (11:04 +0000)
committered <ed@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 13 Jul 2010 11:04:46 +0000 (11:04 +0000)
commit62fb13c37f928e874857d4606df35808ce4dbe9a
treef87a3598fcf075bd617996d1590be355190f69ba
parent3a3df507fbf8ec70f3030571ec3a428de38bc6be
MFC r209718:

  Fix a race condition, where a TTY could be destroyed twice.

  There are special cases where tty_rel_free() can be called twice in a
  row, namely when closing and revoking the TTY at the same moment. Only
  call destroy_dev_sched_cb() once.

Reported by:  Jeremie Le Hen

git-svn-id: svn://svn.freebsd.org/base/stable/8@209989 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/tty.c