Re: [PATCH net v3 1/3] net: fealnx: fix teardown order in remove

From: Andrew Lunn

Date: Mon Oct 19 2026 - 14:17:54 EST


On Mon, Oct 19, 2026 at 01:42:49PM +0000, Жамбакиев Радий Рикардинович wrote:
> From: Radiy Zhambakiev <r.zhambakiev@xxxxxxxxxxxxxxxxx>
>
> fealnx_remove_one() frees the DMA rings before unregistering the
> netdev, while the interface may still be up, which leaves a
> window where freed memory can be accessed.
>
> Call unregister_netdev() first so dev_close() completes before
> the rings are freed.
>
> Found by Linux Verification Center (linuxtesting.org)
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")

Seems unlikely this bothers anybody if you are referencing this
commit. Please submit to net-next, in three weeks time when the merge
window closes.

Andrew