Cc: Greg KH <greg@...>, Kernel development list <linux-kernel@...>, Jonathan Corbet <corbet@...>, Randy Dunlap <randy.dunlap@...>, Cornelia Huck <cornelia.huck@...>
No -- we should but we don't. Look at the code for kobject_init() and
kobject_add() in Greg's tree and you'll see. Neither of them checks
that kobj->ktype is set.
Yes, but what if neither kobj->parent nor kobj->kset is set?
Alan Stern
-