Browse Source

[natsemi] 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
93f1d69a77
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/drivers/net/natsemi.c

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

@@ -880,6 +880,7 @@ static int natsemi_probe ( struct pci_device *pci ) {
880 880
  err_hwaddr:
881 881
 	natsemi_reset ( natsemi );
882 882
  err_reset:
883
+	iounmap ( natsemi->regs );
883 884
 	netdev_nullify ( netdev );
884 885
 	netdev_put ( netdev );
885 886
  err_alloc:
@@ -902,6 +903,7 @@ static void natsemi_remove ( struct pci_device *pci ) {
902 903
 	natsemi_reset ( natsemi );
903 904
 
904 905
 	/* Free network device */
906
+	iounmap ( natsemi->regs );
905 907
 	netdev_nullify ( netdev );
906 908
 	netdev_put ( netdev );
907 909
 }

Loading…
Cancel
Save