svn commit: r190417 - head/sys/kern

John Baldwin jhb at FreeBSD.org
Wed Mar 25 10:02:08 PDT 2009


Author: jhb
Date: Wed Mar 25 17:02:05 2009
New Revision: 190417
URL: http://svn.freebsd.org/changeset/base/190417

Log:
  When looking up the parent devclass of a new devclass, create the parent
  devclass if it doesn't already exist.

Modified:
  head/sys/kern/subr_bus.c

Modified: head/sys/kern/subr_bus.c
==============================================================================
--- head/sys/kern/subr_bus.c	Wed Mar 25 16:23:43 2009	(r190416)
+++ head/sys/kern/subr_bus.c	Wed Mar 25 17:02:05 2009	(r190417)
@@ -820,7 +820,7 @@ devclass_find_internal(const char *class
 	 */
 	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;
 	}
 


More information about the svn-src-all mailing list