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