Input: evdev - properly access RCU-protected 'grab' data
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 2 May 2012 07:13:36 +0000 (00:13 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 2 May 2012 07:23:14 +0000 (00:23 -0700)
commitdba4258068f822b7dafc78c28fe9c99c551eca7e
tree0df5af1962e330399822c2d21f57a629f0b2d15c
parentf31ad406693f114e57ad4651eb17deb68419c7cb
Input: evdev - properly access RCU-protected 'grab' data

We should use rcu_dereference_protected() when checking if given client
is the one that grabbed the device. This fixes warnings produced by
sparse.

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