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)
Sat, Mar 14, 5:16 AM
Unknown Object (File)
Fri, Mar 13, 7:35 PM
Unknown Object (File)
Thu, Mar 12, 3:56 PM
Unknown Object (File)
Thu, Mar 12, 8:42 AM
Unknown Object (File)
Wed, Mar 11, 12:41 PM
Unknown Object (File)
Mon, Mar 9, 9:54 PM
Unknown Object (File)
Sat, Feb 21, 4:51 PM
Unknown Object (File)
Sat, Feb 21, 4:00 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