vt_ioctl: fix lock imbalance
authorJiri Slaby <jirislaby@gmail.com>
Mon, 22 Jun 2009 17:42:18 +0000 (18:42 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 22 Jun 2009 18:32:24 +0000 (11:32 -0700)
commita115902f67ef51fbbe83e214fb761aaa9734c1ce
treea12a81468795e40fe0012331cc4e95d13f5177e0
parent69ae59d7d8df14413cf0a97b3e372d7dc8352563
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>
drivers/char/vt_ioctl.c