mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
device_delete_child should be destroying the child, not the dev
MFC After: 1 week Reviewed by: imp, kib Pull Request: https://github.com/freebsd/freebsd-src/pull/1934
This commit is contained in:
parent
9cdb2eb668
commit
930a1341d6
1 changed files with 1 additions and 1 deletions
|
|
@ -1557,7 +1557,7 @@ device_delete_child(device_t dev, device_t child)
|
|||
return (error);
|
||||
}
|
||||
|
||||
device_destroy_props(dev);
|
||||
device_destroy_props(child);
|
||||
if (child->devclass)
|
||||
devclass_delete_device(child->devclass, child);
|
||||
if (child->parent)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue