[natsemi] 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 e982a7e3c4
commit 93f1d69a77
1 changed files with 2 additions and 0 deletions

View File

@ -880,6 +880,7 @@ static int natsemi_probe ( struct pci_device *pci ) {
err_hwaddr:
natsemi_reset ( natsemi );
err_reset:
iounmap ( natsemi->regs );
netdev_nullify ( netdev );
netdev_put ( netdev );
err_alloc:
@ -902,6 +903,7 @@ static void natsemi_remove ( struct pci_device *pci ) {
natsemi_reset ( natsemi );
/* Free network device */
iounmap ( natsemi->regs );
netdev_nullify ( netdev );
netdev_put ( netdev );
}