git: 192781bf5d04 - main - libthr: Consume error in check_and_init_mutex
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Oct 2026 01:26:20 UTC
The branch main has been updated by aokblast:
URL: https://cgit.FreeBSD.org/src/commit/?id=192781bf5d047cceff3a1947bfc754c8b5eb0835
commit 192781bf5d047cceff3a1947bfc754c8b5eb0835
Author: ShengYi Hung <aokblast@FreeBSD.org>
AuthorDate: 2026-10-06 23:08:42 +0000
Commit: ShengYi Hung <aokblast@FreeBSD.org>
CommitDate: 2026-10-07 01:26:11 +0000
libthr: Consume error in check_and_init_mutex
MFC after: 2 weeks
---
lib/libthr/thread/thr_mutex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c
index 32bdc4afe65f..82da8ab1ccba 100644
--- a/lib/libthr/thread/thr_mutex.c
+++ b/lib/libthr/thread/thr_mutex.c
@@ -1136,7 +1136,7 @@ __pthread_mutex_setyieldloops_np(pthread_mutex_t *mutex, int count)
ret = check_and_init_mutex(mutex, &m);
if (ret == 0)
m->m_yieldloops = count;
- return (0);
+ return (ret);
}
int