]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/net/ethernet/microchip/sparx5/sparx5_main.c
net: microchip: sparx5: Fix missing destroy_workqueue of mact_queue
[mirror_ubuntu-jammy-kernel.git] / drivers / net / ethernet / microchip / sparx5 / sparx5_main.c
index 435ac224e38edab549823f49f4524e17daec438b..0463f20da17b30f677be2f58b9157ef9f3ec78e4 100644 (file)
@@ -829,6 +829,8 @@ static int mchp_sparx5_probe(struct platform_device *pdev)
 
 cleanup_ports:
        sparx5_cleanup_ports(sparx5);
+       if (sparx5->mact_queue)
+               destroy_workqueue(sparx5->mact_queue);
 cleanup_config:
        kfree(configs);
 cleanup_pnode:
@@ -852,6 +854,7 @@ static int mchp_sparx5_remove(struct platform_device *pdev)
        sparx5_cleanup_ports(sparx5);
        /* Unregister netdevs */
        sparx5_unregister_notifier_blocks(sparx5);
+       destroy_workqueue(sparx5->mact_queue);
 
        return 0;
 }