HomeFreeBSD

Use device_delete_children instead of explicit calls to device_delete_child

Description

Use device_delete_children instead of explicit calls to device_delete_child

This is simpler and more robust in the face of potential double-frees
(e.g. if called after bus_generic_detach which will delete devices in
a future commit).

Reviewed by: manu, imp
Differential Revision: https://reviews.freebsd.org/D47958

Details

Provenance
jhbAuthored on Thu, Jan 2, 6:20 PM
Reviewer
manu
Differential Revision
D47958: Use device_delete_children instead of explicit calls to device_delete_child
Parents
rGe9d3857040a1: Use bus_detach_children instead of bus_generic_detach
Branches
Unknown
Tags
Unknown