]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: destroy workqueue at the end of remove function
authorDongliang Mu <mudongliangabcd@gmail.com>
Tue, 30 Nov 2021 04:05:54 +0000 (12:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Nov 2021 12:14:33 +0000 (12:14 +0000)
commit1480f7acd00f54451ff691d25b3e33d2f1aad783
tree34b16577bf24fbd7024667f37563a8ee87491913
parentf94923f3432ee63b122831a6579ea0347a9df9c2
dpaa2-eth: destroy workqueue at the end of remove function

The commit 9289bbe02a82 ("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: 9289bbe02a82 ("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>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c