]> 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>
Sun, 7 Oct 2012 15:35:51 +0000 (08:35 -0700)
commit2ce9883d42c658bcca161570a6e1e59a7dfc6ac2
treec4586dd68dfda04f0938d1d405f24a897f03fac7
parent0d5aa2d23227a041156ed568b4374901c68fb04f
tty: keyboard.c: Remove locking from vt_get_leds.

commit 157a4b311c45c9aba75a990464d9680867dc8805 upstream.

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