]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite29dae5a1019bb21a45c3ad716d9d744cf38ce19
tree4cd65e810725baf91b1dd27c91288388eb28c798
parent3863700796d4eec20116fc787cb96ab01605803a
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