diff options
author | Dongliang Mu <mudongliangabcd@gmail.com> | 2021-11-30 07:05:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-30 15:14:33 +0300 |
commit | f4a8adbfe4841491b60c14fe610571e1422359f9 (patch) | |
tree | 34b16577bf24fbd7024667f37563a8ee87491913 /drivers/net/ethernet/freescale/dpaa2 | |
parent | d1ec975f9fa6d2211c1f403010361034a87e317f (diff) | |
download | linux-f4a8adbfe4841491b60c14fe610571e1422359f9.tar.xz |
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")
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpaa2')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c index 6451c8383639..8e643567abce 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c @@ -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); |