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
This commit is contained in:
hselasky 2018-02-01 17:32:45 +00:00
parent c3e84aae4b
commit 20b17c69e0

View File

@ -1149,6 +1149,8 @@ linux_file_mmap_single(struct file *fp, vm_ooffset_t *offset,
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);
}