From 0ab115f498beaa2a2e35709ef9e16ad013a3d5a4 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 13 Mar 2024 16:06:50 -0700 Subject: [PATCH] freebsd64: Ignore errors when copying out during thr_exit() Apply the changes to sys_thr_exit from f450277f7a608f26624384e046c1987490c51296 to freebsd64_thr_exit. --- sys/compat/freebsd64/freebsd64_misc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/compat/freebsd64/freebsd64_misc.c b/sys/compat/freebsd64/freebsd64_misc.c index 594a74c708b3..687ded9ac41c 100644 --- a/sys/compat/freebsd64/freebsd64_misc.c +++ b/sys/compat/freebsd64/freebsd64_misc.c @@ -1596,8 +1596,9 @@ freebsd64_thr_exit(struct thread *td, struct freebsd64_thr_exit_args *uap) /* Signal userland that it can free the stack. */ if (uap->state != NULL) { - suword(__USER_CAP_OBJ(uap->state), 1); - kern_umtx_wake(td, __USER_CAP_OBJ(uap->state), INT_MAX, 0); + (void)suword(__USER_CAP_OBJ(uap->state), 1); + (void)kern_umtx_wake(td, __USER_CAP_OBJ(uap->state), INT_MAX, + 0); } return (kern_thr_exit(td));