dpaa2-eth: destroy workqueue at the end of remove function
commitf4a8adbfe4upstream. The commitc55211892f("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:c55211892f("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
dde240695d
commit
e26dab79e1
1 changed files with 2 additions and 0 deletions
|
|
@ -4432,6 +4432,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue