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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 19 Jul 2025 15:57:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288309

--- Comment #1 from Zhenlei Huang <zlei@FreeBSD.org> ---
(In reply to Mike Belanger from comment #0)
> There is a memory leak in an error path where gen_bus_dma_teardown is called
> The tx_buf_tag is checked in both cases instead of checking the rx_buf_tag in
> the second case where rx dma mappings are destroyed.

That is obviously true.

> However we have added a detach handler that is leveraging this function.
> Please consider adding a detach handler.

Can you elaborate the usage for adding the detach handler ?

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