vt_ioctl: fix lock imbalance
Don't return from switch/case directly in vt_ioctl. Set ret and break instead so that we unlock BKL. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Cc: stable@kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
69ae59d7d8
commit
a115902f67
1 changed files with 2 additions and 1 deletions
|
@ -396,7 +396,8 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,
|
|||
kbd = kbd_table + console;
|
||||
switch (cmd) {
|
||||
case TIOCLINUX:
|
||||
return tioclinux(tty, arg);
|
||||
ret = tioclinux(tty, arg);
|
||||
break;
|
||||
case KIOCSOUND:
|
||||
if (!perm)
|
||||
goto eperm;
|
||||
|
|
Loading…
Reference in a new issue