|
@@ -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
|
}
|