Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jul 2025 15:57:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 288309] genet driver memory leak in dma teardown (cut and paste issue)
Message-ID:  <bug-288309-7501-FeY0Sqq17R@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-288309-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-288309-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-288309-7501-FeY0Sqq17R>