Browse Source

[realtek] Add missing iounmap()

Reported-by: Thomas Miletich <thomas.miletich@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
e982a7e3c4
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/drivers/net/realtek.c

+ 2
- 0
src/drivers/net/realtek.c View File

@@ -987,6 +987,7 @@ static int realtek_probe ( struct pci_device *pci ) {
987 987
  err_nvs_read:
988 988
 	realtek_reset ( rtl );
989 989
  err_reset:
990
+	iounmap ( rtl->regs );
990 991
 	netdev_nullify ( netdev );
991 992
 	netdev_put ( netdev );
992 993
  err_alloc:
@@ -1013,6 +1014,7 @@ static void realtek_remove ( struct pci_device *pci ) {
1013 1014
 	realtek_reset ( rtl );
1014 1015
 
1015 1016
 	/* Free network device */
1017
+	iounmap ( rtl->regs );
1016 1018
 	netdev_nullify ( netdev );
1017 1019
 	netdev_put ( netdev );
1018 1020
 }

Loading…
Cancel
Save