]> git.neil.brown.name Git - history.git/commit
[PATCH] disassociate_ctty SMP fix
authorAndrew Morton <akpm@digeo.com>
Wed, 12 Feb 2003 05:06:21 +0000 (21:06 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Wed, 12 Feb 2003 05:06:21 +0000 (21:06 -0800)
commit01ffc65c85396f5618f0fc43a3bae44953a76c14
treed2c66d4f13e31f47e818180b98de0919313e542f
parent4009595207da2ed3c2e81213fd4f297917d4d49d
[PATCH] disassociate_ctty SMP fix

Patch from Rik van Riel <riel@conectiva.com.br>

the following patch, against today's BK tree, fixes a small
SMP race in disassociate_ctty.  This function gets called
from do_exit, without the BKL held.

However, it sets the *tty variable before grabbing the bkl,
then makes decisions on what the variable was set to before
the lock was grabbed, despite the fact that another process
could modify its ->tty pointer in this same function.
drivers/char/tty_io.c