HomeFreeBSD

device_attach: Invoke BUS_CHILD_DETACHED if an attach routine fails

Description

device_attach: Invoke BUS_CHILD_DETACHED if an attach routine fails

This gives the parent bus driver the opportunity to cleanup any
allocated resources, etc. left behind by a failed attach attempt.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D47155

Details

Provenance
jhbAuthored on Wed, Oct 16, 6:08 PM
Reviewer
imp
Differential Revision
D47155: device_attach: Invoke BUS_CHILD_DETACHED if an attach routine fails
Parents
rG1ad335196656: device_delete_child: Update comments
Branches
Unknown
Tags
Unknown