Input: serio_raw - perform proper locking when adding clients to list
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 11 Oct 2011 01:30:26 +0000 (18:30 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 11 Oct 2011 01:34:55 +0000 (18:34 -0700)
commit843e784afe164ac8c75a97259d54cf489be74bb9
treec8f4e97ef6889c780f698729ddfc5eae5d33ef85
parent7c5bbb2eb7ad047b53c205b1f500bae7b0a88c06
Input: serio_raw - perform proper locking when adding clients to list

Make sure we hold serio lock when adding clients to client list so that
we do not race with serio_raw_release() removing clients from the same
list.

Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/serio_raw.c