From: Samuel Ortiz Date: Mon, 1 Oct 2007 08:20:12 +0000 (-0700) Subject: VT ioctl race fix X-Git-Tag: v2.6.23-rc9~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8792f961ba8057d9f27987def3600253a3ba060f;p=pandora-kernel.git 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 Acked-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed