On Thu,  6 Nov 2025 22:08:05 +0530
Hemant Agrawal <[email protected]> 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: [email protected]
> Cc: [email protected]
> 
> Signed-off-by: Hemant Agrawal <[email protected]>

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

Reply via email to