Input: sparse-keymap - implement safer freeing of the keymap
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 22 Mar 2010 05:56:15 +0000 (22:56 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 22 Mar 2010 06:00:51 +0000 (23:00 -0700)
commit2e2e3b96d98d5c17e9c09bc6088df3e182a71814
tree0ed49ca3ee60a9deb465d8aa4894365bd8d3030d
parent13bad37b04c779d98983307a27f97e9caa36f9b1
Input: sparse-keymap - implement safer freeing of the keymap

Allow calling sparse_keymap_free() before unregistering input device
whithout risk of racing with EVIOCGETKEYCODE and EVIOCSETKEYCODE.
This makes life of drivers writers easier.

Acked-by: Yong Wang <yong.y.wang@intel.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input.c
drivers/input/sparse-keymap.c