]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[intel] 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:10:28 +0000 (17:10 +0100)
Reported-by: Thomas Miletich <thomas.miletich@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/intel.c

index 1fdce1cbf6558e22a9d6c1212c2698d163f1c3c2..353fc971017b66ffa5050253ebc79dda86388fa3 100644 (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 );
 }