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

Commit e90f869c authored by Dima Zavin's avatar Dima Zavin Committed by Dmitry Torokhov
Browse files

Input: evdev - if no events and non-block, return EAGAIN not 0



Signed-off-by: default avatarDima Zavin <dima@android.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 566cf5b6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -412,6 +412,9 @@ static ssize_t evdev_read(struct file *file, char __user *buffer,
		retval += input_event_size();
	}

	if (retval == 0 && (file->f_flags & O_NONBLOCK))
		return -EAGAIN;

	return retval;
}