svn commit: r299256 - head/sys/compat/linuxkpi/common/src
Hans Petter Selasky
hselasky at FreeBSD.org
Mon May 9 11:52:59 UTC 2016
Author: hselasky
Date: Mon May 9 11:52:57 2016
New Revision: 299256
URL: https://svnweb.freebsd.org/changeset/base/299256
Log:
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
Modified:
head/sys/compat/linuxkpi/common/src/linux_compat.c
Modified: head/sys/compat/linuxkpi/common/src/linux_compat.c
==============================================================================
--- head/sys/compat/linuxkpi/common/src/linux_compat.c Mon May 9 11:48:09 2016 (r299255)
+++ head/sys/compat/linuxkpi/common/src/linux_compat.c Mon May 9 11:52:57 2016 (r299256)
@@ -671,7 +671,7 @@ linux_file_poll(struct file *file, int e
else
revents = 0;
- return (0);
+ return (revents);
}
static int
More information about the svn-src-all
mailing list