]> git.baikalelectronics.ru Git - kernel.git/commit
net: microchip: sparx5: Fix missing destroy_workqueue of mact_queue
authorQiheng Lin <linqiheng@huawei.com>
Sat, 3 Dec 2022 07:02:59 +0000 (15:02 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 6 Dec 2022 10:50:49 +0000 (11:50 +0100)
commit7887c6bd33a6f891fb09da9f29d3e83559dface3
tree8cb3801207a52170bf9a42abc8960ce2de13fa38
parent1efdd785dac86d8e35a883a4f3073d9bb293d09c
net: microchip: sparx5: Fix missing destroy_workqueue of mact_queue

The mchp_sparx5_probe() won't destroy workqueue created by
create_singlethread_workqueue() in sparx5_start() when later
inits failed. Add destroy_workqueue in the cleanup_ports case,
also add it in mchp_sparx5_remove()

Fixes: d7ac704b694c ("net: sparx5: add mactable support")
Signed-off-by: Qiheng Lin <linqiheng@huawei.com>
Link: https://lore.kernel.org/r/20221203070259.19560-1-linqiheng@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/microchip/sparx5/sparx5_main.c