Message ID | 20220428234656.9627EC385AD@smtp.kernel.org |
---|---|
State | New |
Headers | show |
Series | + mm-mremap-fix-sign-for-efault-error-return-value.patch added to -mm tree | expand |
--- a/mm/mremap.c~mm-mremap-fix-sign-for-efault-error-return-value +++ a/mm/mremap.c @@ -941,7 +941,7 @@ SYSCALL_DEFINE5(mremap, unsigned long, a return -EINTR; vma = vma_lookup(mm, addr); if (!vma) { - ret = EFAULT; + ret = -EFAULT; goto out; }