summaryrefslogtreecommitdiffstats
path: root/drivers/tty/vt/vt.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-03-02 16:00:02 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-08 20:11:39 +0100
commit5289475d1375017ab4288b276383e9684280876d (patch)
tree9efb9bfccfb9b008bc1c9f2e5c89af8b26d57fc8 /drivers/tty/vt/vt.c
parentvt: waitevent is self locked so drop the tty_lock (diff)
downloadlinux-5289475d1375017ab4288b276383e9684280876d.tar.xz
linux-5289475d1375017ab4288b276383e9684280876d.zip
vt: tackle the main part of the selection logic
We leave the existing paste mess alone and just fix up the vt side of things. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt/vt.c')
-rw-r--r--drivers/tty/vt/vt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index ab7385e526af..e5abceacc2d0 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -2623,7 +2623,9 @@ int tioclinux(struct tty_struct *tty, unsigned long arg)
console_unlock();
break;
case TIOCL_SELLOADLUT:
+ console_lock();
ret = sel_loadlut(p);
+ console_unlock();
break;
case TIOCL_GETSHIFTSTATE: