Skip to content

Commit f4a8adb

Browse files
mudongliangdavem330
authored andcommitted
dpaa2-eth: destroy workqueue at the end of remove function
The commit c552118 ("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: c552118 ("dpaa2-eth: support PTP Sync packet one-step timestamping") Signed-off-by: Dongliang Mu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d1ec975 commit f4a8adb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4550,6 +4550,8 @@ static int dpaa2_eth_remove(struct fsl_mc_device *ls_dev)
45504550

45514551
fsl_mc_portal_free(priv->mc_io);
45524552

4553+
destroy_workqueue(priv->dpaa2_ptp_wq);
4554+
45534555
dev_dbg(net_dev->dev.parent, "Removed interface %s\n", net_dev->name);
45544556

45554557
free_netdev(net_dev);

0 commit comments

Comments
 (0)