]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
VT ioctl race fix
authorSamuel Ortiz <sameo@openedhand.com>
Mon, 1 Oct 2007 08:20:12 +0000 (01:20 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 1 Oct 2007 14:52:23 +0000 (07:52 -0700)
commit8792f961ba8057d9f27987def3600253a3ba060f
treed12f795ab089e215e6e42c962c1abf06f70c3010
parent4047727e5ae33f9b8d2b7766d1994ea6e5ec2991
VT ioctl race fix

When calling the RELDISP VT ioctl, we are reading vt_newvt while the
console workqueue could be messing with it (through change_console()).  We
fix this race by taking the console semaphore before reading vt_newvt.

Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Acked-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/vt_ioctl.c