Signed-off-by: Warner Losh <[email protected]>
---
 bsd-user/freebsd/os-file.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsd-user/freebsd/os-file.h b/bsd-user/freebsd/os-file.h
index aa8d8bda74..ea15ab25a1 100644
--- a/bsd-user/freebsd/os-file.h
+++ b/bsd-user/freebsd/os-file.h
@@ -110,7 +110,7 @@ static inline abi_long do_freebsd___specialfd(int type, 
abi_ulong req,
         struct specialfd_eventfd evfd;
         struct target_specialfd_eventfd *target_eventfd;
 
-        if (!lock_user_struct(VERIFY_READ, target_eventfd, req, 0)) {
+        if (!lock_user_struct(VERIFY_READ, target_eventfd, req, 1)) {
             return -TARGET_EFAULT;
         }
 

-- 
2.52.0


Reply via email to