Commit 383bc2fe authored by Wei Yongjun's avatar Wei Yongjun Committed by Jiri Slaby

igbvf: add missing iounmap() on error in igbvf_probe()

commit de524681 upstream.

Add the missing iounmap() before return from igbvf_probe()
in the error handling case.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Tested-by: default avatarSibai Li <Sibai.li@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 9b0b3e89
......@@ -2692,7 +2692,7 @@ static int igbvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
if (ei->get_variants) {
err = ei->get_variants(adapter);
if (err)
goto err_ioremap;
goto err_get_variants;
}
/* setup adapter struct */
......@@ -2789,6 +2789,7 @@ static int igbvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
kfree(adapter->rx_ring);
err_sw_init:
igbvf_reset_interrupt_capability(adapter);
err_get_variants:
iounmap(adapter->hw.hw_addr);
err_ioremap:
free_netdev(netdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment