]> git.baikalelectronics.ru Git - kernel.git/commit
tty: make sure that proc_clear_tty stores the cpu flags
authorArjan van de Ven <arjan@linux.intel.com>
Wed, 15 Oct 2008 09:52:34 +0000 (10:52 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 Oct 2008 17:19:51 +0000 (10:19 -0700)
commit17614a121860c9deb040f345a519a155b3999070
tree72965f7aaec65c6822523e77626d733e9957c19d
parent758b5b1c291145f1ca36d03b894b2587c124e2b0
tty: make sure that proc_clear_tty stores the cpu flags

proc_clear_tty() gets called with interrupts off (while holding the task list
lock) from sys_setid. This means that it needs the _irqsave version of the
locking primitives.

Reported-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Tested-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_io.c