HomeFreeBSD

Remove a test and early-out which just can't possibly be right. It causes

Description

Remove a test and early-out which just can't possibly be right. It causes
detach() to do nothing if attach() succeeded, which is the opposite of
what's needed. Also, move device_delete_children() from the end to the
beginning of detach(), so that children won't be trying to make use of the
hardware we're in the process of shutting down.

PR: 229510

Details

Provenance
ianAuthored on
Parents
rS335984: MFC r335479, r335509
Branches
Unknown
Tags
Unknown