]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Fix missing destroy_workqueue of nicvf_rx_mode_wq
authorYongqiang Liu <liuyongqiang13@huawei.com>
Sat, 3 Dec 2022 09:41:25 +0000 (09:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Dec 2022 10:30:46 +0000 (11:30 +0100)
commit612d93104d9e70eeb5f9d6ff464968c43ea13ad9
treedaf604811eb431d5f19af80fd79e961c678c3b0a
parentcee6ae4a59c6678e9f9548c0e31781d164ef6bc3
net: thunderx: Fix missing destroy_workqueue of nicvf_rx_mode_wq

[ Upstream commit 42330a32933fb42180c52022804dcf09f47a2f99 ]

The nicvf_probe() won't destroy workqueue when register_netdev()
failed. Add destroy_workqueue err handle case to fix this issue.

Fixes: 50ef047b1ed9 ("net: thunderx: replace global nicvf_rx_mode_wq work queue for all VFs to private for each of them.")
Signed-off-by: Yongqiang Liu <liuyongqiang13@huawei.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://lore.kernel.org/r/20221203094125.602812-1-liuyongqiang13@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/cavium/thunder/nicvf_main.c