vt: tackle the main part of the selection logic
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / tty / vt / vt.c
index ab7385e..e5abcea 100644 (file)
@@ -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: