]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tty: keyboard.c: Remove locking from vt_get_leds.
authorChristopher Brannon <chris@the-brannons.com>
Fri, 22 Jun 2012 13:16:34 +0000 (08:16 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 21:28:17 +0000 (14:28 -0700)
commit157a4b311c45c9aba75a990464d9680867dc8805
tree78c3cdd4f387121e7db5988aec9310e8c627c127
parentf5e3bcc504c3c35cc6e06a9ee42efed7c274066b
tty: keyboard.c: Remove locking from vt_get_leds.

There are three call sites for this function, and all three
are called within a keyboard handler.
kbd_event_lock is already held within keyboard handlers,
so attempting to lock it in vt_get_leds causes deadlock.

Signed-off-by: Christopher Brannon <chris@the-brannons.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/keyboard.c