]> 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)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 6 Dec 2022 11:41:46 +0000 (12:41 +0100)
commitd043ddf6ea02b65bffb399656dd4ba4bdc9fe374
treea2393d364489ffcc658f32b425b1d12de08fb358
parent6d263f1739487451a85696120f068223c64a05ee
net: thunderx: Fix missing destroy_workqueue of nicvf_rx_mode_wq

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

Fixes: 671bae11c0c6 ("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>
drivers/net/ethernet/cavium/thunder/nicvf_main.c