opnsense-src/sys/dev/mana
John Baldwin 1ab14e185a 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

(cherry picked from commit d412c07617eb35435668b024bc2cecda05f57f1f)
2025-02-27 10:17:49 -05:00
..
gdma.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gdma_main.c Check for errors when detaching children first, not last 2025-02-27 10:17:49 -05:00
gdma_util.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gdma_util.h log2: move log2 functions from linuxkpi to libkern 2025-02-10 04:29:23 -06:00
hw_channel.c mana: Stop checking for failures from malloc/mallocarray/buf_ring_alloc(M_WAITOK) 2024-09-30 12:44:24 +08:00
hw_channel.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mana.h mana: Fix TX CQE error handling 2024-01-24 12:36:13 +00:00
mana_en.c mana: Remove stray semicolons 2024-10-31 12:40:17 +08:00
mana_sysctl.c mana: Fix TX CQE error handling 2024-01-24 12:36:13 +00:00
mana_sysctl.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
shm_channel.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
shm_channel.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00