From: Wei Yongjun Date: Tue, 24 Sep 2013 05:18:45 +0000 (+0000) Subject: igbvf: add missing iounmap() on error in igbvf_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de524681f88ff4ed293aa239f83c8cb04d59b47d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git igbvf: add missing iounmap() on error in igbvf_probe() Add the missing iounmap() before return from igbvf_probe() in the error handling case. Signed-off-by: Wei Yongjun Tested-by: Aaron Brown Tested-by: Sibai Li Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/igbvf/netdev.c b/drivers/net/ethernet/intel/igbvf/netdev.c index f48ae71f0d47..9fadbb28cf08 100644 --- a/drivers/net/ethernet/intel/igbvf/netdev.c +++ b/drivers/net/ethernet/intel/igbvf/netdev.c @@ -2698,7 +2698,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 */ @@ -2795,6 +2795,7 @@ err_hw_init: 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);