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

index 25f1a270e07a8bff79caf0dbe7bbd81911424a91..237f8721056158e6661bd5b1704dad69b9eb8f8d 100644 (file)
@@ -626,6 +626,7 @@ static int myson_probe ( struct pci_device *pci ) {
  err_register_netdev:
        myson_reset ( myson );
  err_reset:
+       iounmap ( myson->regs );
        netdev_nullify ( netdev );
        netdev_put ( netdev );
  err_alloc:
@@ -648,6 +649,7 @@ static void myson_remove ( struct pci_device *pci ) {
        myson_reset ( myson );
 
        /* Free network device */
+       iounmap ( myson->regs );
        netdev_nullify ( netdev );
        netdev_put ( netdev );
 }