[intel] Add missing iounmap()

Reported-by: Thomas Miletich <thomas.miletich@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/598/head
Michael Brown 2012-07-19 17:10:28 +01:00
parent 58ed3b1cee
commit ac8107854f
1 changed files with 2 additions and 0 deletions

View File

@ -799,6 +799,7 @@ static int intel_probe ( struct pci_device *pci ) {
err_fetch_mac:
intel_reset ( intel );
err_reset:
iounmap ( intel->regs );
netdev_nullify ( netdev );
netdev_put ( netdev );
err_alloc:
@ -821,6 +822,7 @@ static void intel_remove ( struct pci_device *pci ) {
intel_reset ( intel );
/* Free network device */
iounmap ( intel->regs );
netdev_nullify ( netdev );
netdev_put ( netdev );
}