[Bug 288309] genet driver memory leak in dma teardown (cut and paste issue)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 25 Jul 2025 16:28:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288309

John Baldwin <jhb@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jhb@FreeBSD.org
             Status|New                         |In Progress

--- Comment #5 from John Baldwin <jhb@FreeBSD.org> ---
Adding a detach handler is perfectly reasonable.

Note that in 15.0, bus_generic_detach deletes child devices, so you can remove
the call to device_delete_child, but the code you have looks correct to me for
14.x.

Would you want to be credited as the author of the commit to add the detach
handler?

-- 
You are receiving this mail because:
You are the assignee for the bug.