]> git.baikalelectronics.ru Git - kernel.git/commit
tty: fix close/hangup race
authorAlan Cox <alan@linux.intel.com>
Thu, 16 Jul 2009 15:05:08 +0000 (16:05 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Jul 2009 16:19:16 +0000 (09:19 -0700)
commit66bd3d1080d264344a988da5c0a6896e2f568be8
treec654fde94ba2fbf1eb936f017d687860aed0deed
parent2f9d64da9903a661492de5584a3bc0b7bd18a191
tty: fix close/hangup race

We can get a situation where a hangup occurs during or after a close. In
that case the ldisc gets disposed of by the close and the hangup then
explodes.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_ldisc.c