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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Dec 2021 08:04:49 +0000 (09:04 +0100)
commite83fb96f915a01023c5734996b347fb7a7aba202
treec84c89fc82eef210d134fe7c465b5994fb0554c2
parent686578a1bac1251dfaf7c3db98d6d1802cc8d6cc
dpaa2-eth: destroy workqueue at the end of remove function

commit f4a8adbfe4841491b60c14fe610571e1422359f9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c