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

(cherry picked from commit 42078dfb0f72edbf83217cc8c997c0a54d951990)

Details

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