]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[natsemi] Add missing iounmap()
authorMichael Brown <mcb30@ipxe.org>
Thu, 19 Jul 2012 16:10:28 +0000 (17:10 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 19 Jul 2012 16:12:13 +0000 (17:12 +0100)
Reported-by: Thomas Miletich <thomas.miletich@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/natsemi.c

index fb1eb82291473e100ee6d3051795485b4c702e12..669fb8775235dbe0b852ad88d3f972de72af601a 100644 (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 );
 }