]> git.karo-electronics.de Git - linux-beck.git/commit
Input: Add proper locking when changing device's keymap
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 4 Nov 2007 04:41:12 +0000 (00:41 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 21 Jan 2008 06:11:06 +0000 (01:11 -0500)
commitf4f37c8ec7d2491c8885c890ba74254b9adfbeee
treeecd4cb10af7fd7aa4fb02fe2a106608e9d64c3fe
parent554101e3e5f396b987c846332863a3fcdc87b1d6
Input: Add proper locking when changing device's keymap

Take dev->event_lock to make sure that we don't race with input_event() and
also force key up event when removing a key from keymap table.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/char/keyboard.c
drivers/input/evdev.c
drivers/input/input.c
include/linux/input.h