[PATCH 1/3] net/dpaa2: fix duplicate calling of dpaa2 dev close

Stephen Hemminger stephen at networkplumber.org
Thu Nov 13 00:06:10 CET 2025


On Thu,  6 Nov 2025 22:08:05 +0530
Hemant Agrawal <hemant.agrawal at nxp.com> wrote:

> When rte_eth_dev_close() is called, it performs the following actions:
> 
> Calls dev->dev_ops->dev_close(), which in this case is dpaa2_dev_close().
> Then calls rte_eth_dev_release_port(), which releases all device data
> and sets dev->data to NULL.
> 
> Later, when rte_dev_remove() is called, the FSLMC bus invokes
> dev->remove() — that is, rte_dpaa2_remove().
> However, rte_dpaa2_remove() calls dpaa2_dev_close() again. Since dev->data
> was already set to NULL by the previous call, this second invocation
> causes a crash.
> 
> Fixes: 5964d36a2904 ("net/dpaa2: release port upon close")
> Cc: sachin.saxena at nxp.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>

Not merging this now, because of the feedback about how this driver
is interacting with bus. Either need an ACK or new version.


More information about the dev mailing list