Re: [PATCH net v3] net: ethernet: fix use after free bug in ns83820_remove_one due to race condition

From: Jakub Kicinski
Date: Wed Apr 19 2023 - 00:33:59 EST


On Mon, 17 Apr 2023 09:31:07 +0800 Zheng Wang wrote:
> + netif_carrier_off(ndev);
> + netif_tx_disable(ndev);
> +
> unregister_netdev(ndev

It's not immediately obvious to me why disabling carrier and tx
are supposed to help. Please elaborate in the commit message if
you're confident that this is right.

--
pw-bot: cr