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:
parent
4d75630780
commit
2401c73637
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user