aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2026-05-06 20:53:46 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2026-05-06 20:53:46 +0000
commit5df7dae10dc02ade8639b0171e0d3cc8db790e41 (patch)
tree013d12c2b8518c17907575837362884a641893a4 /sys
parent5a6e5954d14b589bcba0125d10a6c7b62b588f4b (diff)
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_kobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_kobj.c b/sys/kern/subr_kobj.c
index 09fd730660c4..a88639289954 100644
--- a/sys/kern/subr_kobj.c
+++ b/sys/kern/subr_kobj.c
@@ -308,7 +308,7 @@ kobj_init(kobj_t obj, kobj_class_t cls)
{
int error;
- error = kobj_init1(obj, cls, M_NOWAIT);
+ error = kobj_init1(obj, cls, M_WAITOK);
if (error != 0)
panic("kobj_init1 failed: error %d", error);
}