net: hinic: add missing destroy_workqueue in hinic_pf_to_mgmt_init
authorZheng Bin <zhengbin13@huawei.com>
Fri, 13 May 2022 07:09:22 +0000 (15:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:59 +0000 (10:22 +0200)
commitcf31d1ef38399ad107c9d1670ee22768d5296646
tree49cb01191d59d8b53a3ce2425d86a7a3c9610fa8
parent9b01252e6c205c1e93f0fb00b6030cfa44c0e2bd
net: hinic: add missing destroy_workqueue in hinic_pf_to_mgmt_init

[ Upstream commit 382d917bfc1e92339dae3c8a636b2730e8bb5132 ]

hinic_pf_to_mgmt_init misses destroy_workqueue in error path,
this patch fixes that.

Fixes: 6dbb89014dc3 ("hinic: fix sending mailbox timeout in aeq event work")
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c