opnsense-src/sys/dev/mana
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
..
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 2024-11-04 20:30:33 -05:00
gdma_util.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gdma_util.h log2: move log2 functions from linuxkpi to libkern 2024-06-24 02:00:31 -05:00
hw_channel.c mana: Stop checking for failures from malloc/mallocarray/buf_ring_alloc(M_WAITOK) 2024-09-03 18:25:30 +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-17 09:25:26 +00:00
mana_en.c mana: Remove stray semicolons 2024-10-24 23:04:49 +08:00
mana_sysctl.c mana: Fix TX CQE error handling 2024-01-17 09:25:26 +00:00
mana_sysctl.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
shm_channel.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
shm_channel.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00