Skip to content

Commit

Permalink
igbvf: add missing iounmap() on error in igbvf_probe()
Browse files Browse the repository at this point in the history
Add the missing iounmap() before return from igbvf_probe()
in the error handling case.

Signed-off-by: Wei Yongjun <[email protected]>
Tested-by: Aaron Brown <[email protected]>
Tested-by: Sibai Li <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
  • Loading branch information
Wei Yongjun authored and Jeff Kirsher committed Oct 24, 2013
1 parent 3de9e65 commit de52468
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/intel/igbvf/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -2795,6 +2795,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);
Expand Down

0 comments on commit de52468

Please sign in to comment.