From: Chiqijun chiqijun@huawei.com
driver inclusion category: bugfix bugzilla: 4472
-----------------------------------------------------------------------
If create_singlethread_workqueue() fails, we forget unmapping BAR resource.
Signed-off-by: Chiqijun chiqijun@huawei.com Reviewed-by: Zengweiliang zengweiliang.zengweiliang@huawei.com Signed-off-by: Yang Yingliang yangyingliang@huawei.com --- drivers/net/ethernet/huawei/hinic/hinic_lld.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_lld.c b/drivers/net/ethernet/huawei/hinic/hinic_lld.c index 2240a39..2ad6d2d 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_lld.c +++ b/drivers/net/ethernet/huawei/hinic/hinic_lld.c @@ -2658,8 +2658,10 @@ static int hinic_probe(struct pci_dev *pdev, const struct pci_device_id *id)
alloc_chip_node_fail: lld_unlock_chip_node(); - unmapping_bar(pci_adapter); + ceate_nic_delay_work_fail: + unmapping_bar(pci_adapter); + map_bar_failed: hinic_pci_deinit(pdev);