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)
commitc8d50041734534e0a4b0ea13df36ed5857fccd56
treec654fde94ba2fbf1eb936f017d687860aed0deed
parenta3ca86aea507904148870946d599e07a340b39bf
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