vt: fix the keyboard/led locking
authorAlan Cox <alan@linux.intel.com>
Tue, 17 Jul 2012 16:06:41 +0000 (17:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jul 2012 16:13:37 +0000 (09:13 -0700)
commit3db1ddb725dcd9a2bb32be2b64d0688c3e1c4579
tree4cd65e810725baf91b1dd27c91288388eb28c798
parentce7240e445303de3ca66e6d08f17a2ec278a5bf6
vt: fix the keyboard/led locking

We touch the LED from both keyboard callback and direct paths. In
one case we've got the lock held way up the call chain and in the
other we haven't. This leads to complete insanity so fix it by giving
the LED bits their own lock.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/keyboard.c
include/linux/kbd_kern.h