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

index 3e1e2d5405f7ba604dc008688f887d6745913edb..e50b778a89ae381ae46185cc228ec95f70c4a465 100644 (file)
@@ -268,6 +268,7 @@ static int skeleton_probe ( struct pci_device *pci ) {
  err_mii_reset:
        skeleton_reset ( skel );
  err_reset:
+       iounmap ( skel->regs );
        netdev_nullify ( netdev );
        netdev_put ( netdev );
  err_alloc:
@@ -290,6 +291,7 @@ static void skeleton_remove ( struct pci_device *pci ) {
        skeleton_reset ( skel );
 
        /* Free network device */
+       iounmap ( skel->regs );
        netdev_nullify ( netdev );
        netdev_put ( netdev );
 }