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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2022 09:57:00 +0000 (10:57 +0100)
commit382d917bfc1e92339dae3c8a636b2730e8bb5132
tree1ce23cfb0eb804c4f1ff22bbc9e3edeafa390746
parent6ee1d84b2b78af4cff0d9714da81c752baf4b01e
net: hinic: add missing destroy_workqueue in hinic_pf_to_mgmt_init

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>
drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c