Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162637178
D56624.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
366 B
Referenced Files
None
Subscribers
None
D56624.diff
View Options
diff --git a/sys/kern/subr_kobj.c b/sys/kern/subr_kobj.c
--- a/sys/kern/subr_kobj.c
+++ b/sys/kern/subr_kobj.c
@@ -317,6 +317,8 @@
kobj_init_static(kobj_t obj, kobj_class_t cls)
{
+ KASSERT(cls->ops != NULL,
+ ("%s: class %p is not compiled", __func__, cls));
KASSERT(kobj_mutex_inited == 0,
("%s: only supported during early cycles", __func__));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 16, 7:19 AM (21 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32140078
Default Alt Text
D56624.diff (366 B)
Attached To
Mode
D56624: kobj: Assert class passed to kobj_init_static is compiled
Attached
Detach File
Event Timeline
Log In to Comment