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)
Mon, Dec 30, 7:02 PM
Unknown Object (File)
Dec 8 2024, 11:43 PM
Unknown Object (File)
Nov 16 2024, 2:45 PM
Unknown Object (File)
Nov 16 2024, 2:45 PM
Unknown Object (File)
Nov 16 2024, 11:59 AM
Unknown Object (File)
Nov 5 2024, 3:32 AM
Unknown Object (File)
Nov 3 2024, 10:16 PM
Unknown Object (File)
Nov 2 2024, 6:32 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