aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2016-03-26 19:16:53 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2016-03-26 19:16:53 +0000
commit09806d8e3e6d90b8e311efc689e0ce282da578cd (patch)
tree073c1abccfdac2c8dac8aa1519950e28f9293564 /sys
parent2bb14e75412d84280c0033546d44f1a45930f2af (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/linux/linux_event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_event.c b/sys/compat/linux/linux_event.c
index f35f3174028b..3e5a15c35aa0 100644
--- a/sys/compat/linux/linux_event.c
+++ b/sys/compat/linux/linux_event.c
@@ -751,6 +751,8 @@ retry:
if (UINT64_MAX - efd->efd_count <= count) {
if ((efd->efd_flags & LINUX_O_NONBLOCK) != 0) {
mtx_unlock(&efd->efd_lock);
+ /* Do not not return the number of bytes written */
+ uio->uio_resid += sizeof(eventfd_t);
return (EAGAIN);
}
error = mtx_sleep(&efd->efd_count, &efd->efd_lock,