commit | 8792f961ba8057d9f27987def3600253a3ba060f | [log] [tgz] |
---|---|---|
author | Samuel Ortiz <sameo@openedhand.com> | Mon Oct 01 01:20:12 2007 -0700 |
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | Mon Oct 01 07:52:23 2007 -0700 |
tree | d12f795ab089e215e6e42c962c1abf06f70c3010 | |
parent | 4047727e5ae33f9b8d2b7766d1994ea6e5ec2991 [diff] |
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>