When looking up the parent devclass of a new devclass, create the parent

devclass if it doesn't already exist.
This commit is contained in:
John Baldwin 2009-03-25 17:02:05 +00:00
parent 4d75630780
commit 2401c73637

View File

@ -820,7 +820,7 @@ devclass_find_internal(const char *classname, const char *parentname,
*/
if (parentname && dc && !dc->parent &&
strcmp(classname, parentname) != 0) {
dc->parent = devclass_find_internal(parentname, NULL, FALSE);
dc->parent = devclass_find_internal(parentname, NULL, TRUE);
dc->parent->flags |= DC_HAS_CHILDREN;
}