opnsense-src/sys/dev/fdt
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
..
fdt_arm_platform.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
fdt_clock.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
fdt_clock.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
fdt_clock_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
fdt_common.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
fdt_common.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
fdt_intr.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
fdt_pinctrl.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
fdt_pinctrl.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
fdt_pinctrl_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
fdt_slicer.c geom_flashmap: Rename the kernel module 2024-10-29 15:11:12 +00:00
fdt_static_dtb.S sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
simple_mfd.c simple_mfd: don't attach children twice 2024-03-08 10:09:36 -04:00
simple_mfd.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
simplebus.c Check for errors when detaching children first, not last 2024-11-04 20:30:33 -05:00
simplebus.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00