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

index 104ff76eb159bf0463ef9cdd990868d8c7dfd340..3c7b1f856940433bcacb1aa89b59ee8c08b98171 100644 (file)
@@ -987,6 +987,7 @@ static int realtek_probe ( struct pci_device *pci ) {
  err_nvs_read:
        realtek_reset ( rtl );
  err_reset:
+       iounmap ( rtl->regs );
        netdev_nullify ( netdev );
        netdev_put ( netdev );
  err_alloc:
@@ -1013,6 +1014,7 @@ static void realtek_remove ( struct pci_device *pci ) {
        realtek_reset ( rtl );
 
        /* Free network device */
+       iounmap ( rtl->regs );
        netdev_nullify ( netdev );
        netdev_put ( netdev );
 }