Page MenuHomeFreeBSD

Check for errors when detaching children first, not last
ClosedPublic

Authored by jhb on Nov 1 2024, 2:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 21, 1:39 PM
Unknown Object (File)
Wed, Aug 12, 11:27 PM
Unknown Object (File)
Wed, Aug 12, 2:09 PM
Unknown Object (File)
Tue, Aug 11, 8:51 PM
Unknown Object (File)
Mon, Aug 10, 12:34 PM
Unknown Object (File)
Mon, Aug 10, 12:01 PM
Unknown Object (File)
Mon, Aug 10, 10:56 AM
Unknown Object (File)
Mon, Aug 10, 10:43 AM
Subscribers

Details

Summary

These detach routines in these drivers all ended with 'return
(bus_generic_detach())' meaning that if any child device failed to
detach, the parent driver was left in a mostly destroyed state, but
still marked attached. Instead, bus drivers should detach child
drivers first and return errors before destroying driver state in the
parent.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable