Input: uinput - take event lock when fetching events from buffer
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 30 Jul 2012 05:48:31 +0000 (22:48 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 22 Aug 2012 05:29:52 +0000 (22:29 -0700)
commit929d1af5478dec82903e05aa9662a4ec12ad655b
treea794fc36f04e592a56a8857493968ced44eedfae
parentc0bb1f975ca06b17d595937c5e91578b36047039
Input: uinput - take event lock when fetching events from buffer

When fetching events form device's buffer in uinput_read() we need to
take input device's event_lock to avoid racing with new event delivery.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/uinput.c