aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/viocons.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/char/viocons.c b/drivers/char/viocons.c
index 8de6b95aeb84..9319c63dda9a 100644
--- a/drivers/char/viocons.c
+++ b/drivers/char/viocons.c
@@ -704,8 +704,11 @@ static int viotty_ioctl(struct tty_struct *tty, struct file *file,
704 case KDSKBLED: 704 case KDSKBLED:
705 return 0; 705 return 0;
706 } 706 }
707 707 /* FIXME: WTF is this being called for ??? */
708 return n_tty_ioctl(tty, file, cmd, arg); 708 lock_kernel();
709 ret = n_tty_ioctl(tty, file, cmd, arg);
710 unlock_kernel();
711 return ret;
709} 712}
710 713
711/* 714/*