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:
parent
c3e84aae4b
commit
20b17c69e0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user