Commit fa886612 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: fix polling of /proc/bus/input/devices

Tested-by: default avatarAlessio Sangalli <alesan@manoweb.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent d15c22e7
......@@ -744,11 +744,11 @@ static inline void input_wakeup_procfs_readers(void)
static unsigned int input_proc_devices_poll(struct file *file, poll_table *wait)
{
int state = input_devices_state;
poll_wait(file, &input_devices_poll_wait, wait);
if (state != input_devices_state)
if (file->f_version != input_devices_state) {
file->f_version = input_devices_state;
return POLLIN | POLLRDNORM;
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment