Correct several bugs. If we fail to add a device be sure to delete its kobj.
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 18 Nov 2003 04:58:19 +0000 (04:58 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 18 Nov 2003 04:58:19 +0000 (04:58 +0000)
commit0c240b9376facd91d68e23ecef11a5144a32a6df
tree5278092877be1be68d59ae97836c2bfe40584774
parent31bc42c8dbf18648b022551c14b247eac0d083b2
Correct several bugs.  If we fail to add a device be sure to delete its kobj.
Remove a double kobj_init() call in make_device().  Replace a manual
free() with a kobj_delete() call, and delete a kobj before reinitializing
it.
sys/kern/subr_bus.c