diff mbox series

[45/66] bsd-user: Unlock in h2t_freebsd_ntptimeval

Message ID 20260515-misc-2026q2-v1-45-5438ca41b27a@bsdimp.com
State New
Headers show
Series bsd-user: Upstream most of the remaining system calls | expand

Commit Message

Warner Losh May 15, 2026, 9:19 p.m. UTC
We lock the structure, but don't have a matching unlock_struct.

Signed-off-by: Warner Losh <imp@bsdimp.com>
---
 bsd-user/freebsd/os-time.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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;
 }