svn commit: r328694 - head/sys/compat/linuxkpi/common/src

Hans Petter Selasky hselasky at FreeBSD.org
Thu Feb 1 17:32:46 UTC 2018


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);
 	}
 


More information about the svn-src-head mailing list