Przeglądaj źródła

[myson] 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 lat temu
rodzic
commit
76b4323b4d
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2
    0
      src/drivers/net/myson.c

+ 2
- 0
src/drivers/net/myson.c Wyświetl plik

@@ -626,6 +626,7 @@ static int myson_probe ( struct pci_device *pci ) {
626 626
  err_register_netdev:
627 627
 	myson_reset ( myson );
628 628
  err_reset:
629
+	iounmap ( myson->regs );
629 630
 	netdev_nullify ( netdev );
630 631
 	netdev_put ( netdev );
631 632
  err_alloc:
@@ -648,6 +649,7 @@ static void myson_remove ( struct pci_device *pci ) {
648 649
 	myson_reset ( myson );
649 650
 
650 651
 	/* Free network device */
652
+	iounmap ( myson->regs );
651 653
 	netdev_nullify ( netdev );
652 654
 	netdev_put ( netdev );
653 655
 }

Ładowanie…
Anuluj
Zapisz