We lock the structure, but don't have a matching unlock_struct.

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

diff --git a/bsd-user/freebsd/os-time.c b/bsd-user/freebsd/os-time.c
index 4333d7d30e..2dba352b2d 100644
--- a/bsd-user/freebsd/os-time.c
+++ b/bsd-user/freebsd/os-time.c
@@ -153,6 +153,7 @@ abi_long h2t_freebsd_ntptimeval(abi_ulong target_ntv_addr,
     __put_user(ntv->esterror, &target_ntv->esterror);
     __put_user(ntv->tai, &target_ntv->tai);
     __put_user(ntv->time_state, &target_ntv->time_state);
+    unlock_user_struct(target_ntv, target_ntv_addr, 1);
 
     return 0;
 }

-- 
2.52.0


Reply via email to