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
F156974107: D47387.id145850.diff
Sun, May 17, 5:59 PM
Unknown Object (File)
Fri, May 15, 1:15 AM
Unknown Object (File)
Sat, May 9, 1:35 PM
Unknown Object (File)
Sat, May 9, 1:25 PM
Unknown Object (File)
Fri, May 8, 7:47 AM
Unknown Object (File)
Thu, Apr 30, 3:21 AM
Unknown Object (File)
Wed, Apr 29, 9:10 AM
Unknown Object (File)
Mon, Apr 27, 8:26 PM
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