]> Pileus Git - ~andy/linux/blobdiff - drivers/input/evdev.c
Input: evdev - try to wake up readers only if we have full packet
[~andy/linux] / drivers / input / evdev.c
index be0921ef6b52ace2a2e15a5d1437c6134799dbf0..4cf25347b01546b1578e0b9987d6717c38db0366 100644 (file)
@@ -111,7 +111,8 @@ static void evdev_event(struct input_handle *handle,
 
        rcu_read_unlock();
 
-       wake_up_interruptible(&evdev->wait);
+       if (type == EV_SYN && code == SYN_REPORT)
+               wake_up_interruptible(&evdev->wait);
 }
 
 static int evdev_fasync(int fd, struct file *file, int on)