Commit d4b675e1 authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Dmitry Torokhov
Browse files

Input: uinput - fix returning EPOLLOUT from uinput_poll



Always return EPOLLOUT from uinput_poll to allow polling /dev/uinput
for writable state.

Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Link: https://lore.kernel.org/r/20191204025014.5189-1-marcel@holtmann.org


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 1e55c176
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -695,7 +695,7 @@ static __poll_t uinput_poll(struct file *file, poll_table *wait)
	if (udev->head != udev->tail)
		return EPOLLIN | EPOLLRDNORM;

	return 0;
	return EPOLLOUT | EPOLLWRNORM;
}

static int uinput_release(struct inode *inode, struct file *file)