diff options
| author | Dmitry Chagin <dchagin@FreeBSD.org> | 2022-05-09 18:16:31 +0000 |
|---|---|---|
| committer | Dmitry Chagin <dchagin@FreeBSD.org> | 2022-05-09 18:16:31 +0000 |
| commit | 07d108932ab5b5bc25221be4916ebf8874cd256f (patch) | |
| tree | 15e6de3465ee47fc4146c82da71edbb61b6e1e5c /sys/i386 | |
| parent | b17446281d21311cc4f9d522c5d18337a9f786bc (diff) | |
Diffstat (limited to 'sys/i386')
| -rw-r--r-- | sys/i386/linux/linux_copyout.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/linux/linux_copyout.c b/sys/i386/linux/linux_copyout.c index bf4c874c3cf2..6dc98bc8bf5d 100644 --- a/sys/i386/linux/linux_copyout.c +++ b/sys/i386/linux/linux_copyout.c @@ -72,7 +72,7 @@ futex_xchgl(int oparg, uint32_t *uaddr, int *oldval) st.oldval = oldval; if (cp_slow0((vm_offset_t)uaddr, sizeof(uint32_t), true, futex_xchgl_slow0, &st) != 0) - return (-EFAULT); + return (EFAULT); return (0); } @@ -94,7 +94,7 @@ futex_addl(int oparg, uint32_t *uaddr, int *oldval) st.oldval = oldval; if (cp_slow0((vm_offset_t)uaddr, sizeof(uint32_t), true, futex_addl_slow0, &st) != 0) - return (-EFAULT); + return (EFAULT); return (0); } @@ -120,7 +120,7 @@ futex_orl(int oparg, uint32_t *uaddr, int *oldval) st.oldval = oldval; if (cp_slow0((vm_offset_t)uaddr, sizeof(uint32_t), true, futex_orl_slow0, &st) != 0) - return (-EFAULT); + return (EFAULT); return (0); } @@ -146,7 +146,7 @@ futex_andl(int oparg, uint32_t *uaddr, int *oldval) st.oldval = oldval; if (cp_slow0((vm_offset_t)uaddr, sizeof(uint32_t), true, futex_andl_slow0, &st) != 0) - return (-EFAULT); + return (EFAULT); return (0); } @@ -172,6 +172,6 @@ futex_xorl(int oparg, uint32_t *uaddr, int *oldval) st.oldval = oldval; if (cp_slow0((vm_offset_t)uaddr, sizeof(uint32_t), true, futex_xorl_slow0, &st) != 0) - return (-EFAULT); + return (EFAULT); return (0); } |
