Messages in this thread Patch in this message | | | From | Jiri Slaby <> | Subject | [PATCH 3/3] Char: vt_ioctl, fix lock imbalance | Date | Fri, 19 Jun 2009 23:08:28 +0200 |
| |
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> --- drivers/char/vt_ioctl.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/char/vt_ioctl.c b/drivers/char/vt_ioctl.c index e6ce632..7539bed 100644 --- a/drivers/char/vt_ioctl.c +++ b/drivers/char/vt_ioctl.c @@ -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; -- 1.6.3.2
| |