]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 9 Dec 2021 10:10:42 +0000 (11:10 +0100)
commitddd88d4362f3f98d17596093b76b091bb9027052
treee7be59ca69781c0f278d8f354babeb8a4bee8d78
parent4830a50fc90308f2ceadd43ecf9f08ada046c179
dpaa2-eth: destroy workqueue at the end of remove function

BugLink: https://bugs.launchpad.net/bugs/1953731
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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c