Commit e5327f5f authored by Scott Feldman's avatar Scott Feldman Committed by Linus Torvalds

[e1000] alloc_etherdev failure didn't cleanup regions

* Bug fix: alloc_etherdev failure didn't cleanup regions in probe.
parent 2e1848a1
......@@ -500,9 +500,9 @@ e1000_probe(struct pci_dev *pdev,
err_eeprom:
iounmap(adapter->hw.hw_addr);
err_ioremap:
pci_release_regions(pdev);
kfree(netdev);
err_alloc_etherdev:
pci_release_regions(pdev);
return -ENOMEM;
}
......
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