HardenedBSD/sys/powerpc/powermac
John Baldwin d412c07617 Check for errors when detaching children first, not last
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.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D47387
2024-11-04 20:30:33 -05:00
..
ata_dbdma.c
ata_dbdma.h
ata_kauai.c
ata_macio.c
atibl.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
cpcht.c
cuda.c Check for errors when detaching children first, not last 2024-11-04 20:30:33 -05:00
cudavar.h
dbdma.c
dbdmavar.h
fcu.c
grackle.c
gracklevar.h
hrowpic.c
hrowpicvar.h
kiic.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
macgpio.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
macgpiovar.h
macio.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
maciovar.h
nvbl.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
platform_powermac.c
platform_powermac.h
pmu.c Check for errors when detaching children first, not last 2024-11-04 20:30:33 -05:00
pmuvar.h
powermac_thermal.c
powermac_thermal.h
pswitch.c
smu.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
smusat.c
tbgpio.c
uninorth.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
uninorthpci.c
uninorthvar.h
vcoregpio.c
viareg.h