2 drivers/input/evdev.c | 10 +++++++---
3 1 file changed, 7 insertions(+), 3 deletions(-)
5 --- a/drivers/input/evdev.c
6 +++ b/drivers/input/evdev.c
7 @@ -92,7 +92,7 @@ static void evdev_event(struct input_han
8 unsigned int type, unsigned int code, int value)
10 struct evdev *evdev = handle->private;
11 - struct evdev_client *client;
12 + struct evdev_client *client, *c;
13 struct input_event event;
15 do_gettimeofday(&event.time);
16 @@ -103,9 +103,13 @@ static void evdev_event(struct input_han
19 client = rcu_dereference(evdev->grab);
22 evdev_pass_event(client, &event);
24 + /* Also pass events to clients that did not grab the device. */
25 + list_for_each_entry_rcu(c, &evdev->client_list, node)
27 + evdev_pass_event(c, &event);
29 list_for_each_entry_rcu(client, &evdev->client_list, node)
30 evdev_pass_event(client, &event);