Skip to contentSkip to conversation

dpaa2-eth: destroy workqueue at the end of remove function

PATCH Applied Dongliang Mu 2 participants 2 messages Nov 30, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dpaa2-eth: destroy workqueue at the end of remove function

The commit c55211892f46 ("dpaa2-eth: support PTP Sync packet one-step timestamping") forgets to destroy workqueue at the end of remove function.

Fix this by adding destroy_workqueue before fsl_mc_portal_free and free_netdev.

Fixes c55211892f46 ("dpaa2-eth: support PTP Sync packet one-step timestamping")
---
 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c +2 -0
index 6451c8383639..8e643567abce 100644
@@ -4550,6 +4550,8 @@ static int dpaa2_eth_remove(struct fsl_mc_device *ls_dev)
 
 	fsl_mc_portal_free(priv->mc_io);
 
+	destroy_workqueue(priv->dpaa2_ptp_wq);
+
 	dev_dbg(net_dev->dev.parent, "Removed interface %s\n", net_dev->name);
 
 	free_netdev(net_dev);
Signature · 1 line
2.25.1
#1 lore raw
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:

Quoted 8 lines · On Tue, 30 Nov 2021 12:05:54 +0800 you wrote:

The commit c55211892f46 ("dpaa2-eth: support PTP Sync packet one-step timestamping") forgets to destroy workqueue at the end of remove function.

Fix this by adding destroy_workqueue before fsl_mc_portal_free and free_netdev.

[...]

Here is the summary with links:
- dpaa2-eth: destroy workqueue at the end of remove function

    https://git.kernel.org/netdev/net/c/f4a8adbfe484

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html