Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa886612 authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

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

parent d15c22e7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
}