Author: hselasky
Date: Thu Feb 1 17:32:45 2018
New Revision: 328694
URL: https://svnweb.freebsd.org/changeset/base/328694
Log:
Make sure the LinuxKPI's internal ERESTARTSYS error code gets translated
into ERESTART for mmap and page fault calls aswell.
MFC after: 1 week
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 Thu Feb 1 17:16:17
2018 (r328693)
+++ head/sys/compat/linuxkpi/common/src/linux_compat.c Thu Feb 1 17:32:45
2018 (r328694)
@@ -1149,6 +1149,8 @@ linux_file_mmap_single(struct file *fp, vm_ooffset_t *
error = EINTR;
} else {
error = -OPW(fp, td, filp->f_op->mmap(filp, vmap));
+ if (error == ERESTARTSYS)
+ error = ERESTART;
up_write(&vmap->vm_mm->mmap_sem);
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"