Fix file polling bug.

Ensure the actual poll result is returned by the "linux_file_poll()"
function instead of zero which means no data is available.

MFC after:	3 days
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2016-05-09 11:52:57 +00:00
parent c34ed7382c
commit 0754e66c54

View File

@ -671,7 +671,7 @@ linux_file_poll(struct file *file, int events, struct ucred *active_cred,
else
revents = 0;
return (0);
return (revents);
}
static int